mirror of https://github.com/status-im/evmc.git
cmake: Make EVMC_TOOLS a dependant option of EVMC_TESTING
When EVMC_TESTING is ON, the EVMC_TOOLS is forced to be ON as well (user can control the value).
This commit is contained in:
parent
23b634f300
commit
d43d827d88
|
@ -9,25 +9,25 @@ if(TARGET evmc)
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(EVMC_INSTALL "Enable EVMC installation (e.g. make install)" ON)
|
|
||||||
|
|
||||||
option(EVMC_TESTING "Build everything (libraries, tools, examples, internal tests)" OFF)
|
|
||||||
|
|
||||||
option(EVMC_TOOLS "Build EVMC tools" ${EVMC_TESTING})
|
|
||||||
if(EVMC_TESTING OR EVMC_TOOLS)
|
|
||||||
set(hunter_and_examples_required TRUE)
|
|
||||||
endif()
|
|
||||||
option(EVMC_EXAMPLES "Build EVMC examples" ${hunter_and_examples_required})
|
|
||||||
option(HUNTER_ENABLED "Enable Hunter package manager support" ${hunter_and_examples_required})
|
|
||||||
|
|
||||||
include(cmake/cable/bootstrap.cmake)
|
include(cmake/cable/bootstrap.cmake)
|
||||||
include(CableBuildType)
|
include(CableBuildType)
|
||||||
include(CableCompilerSettings)
|
include(CableCompilerSettings)
|
||||||
|
include(CMakeDependentOption)
|
||||||
include(CablePackage)
|
include(CablePackage)
|
||||||
include(CableToolchains)
|
include(CableToolchains)
|
||||||
include(CMakePackageConfigHelpers)
|
include(CMakePackageConfigHelpers)
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
|
option(EVMC_INSTALL "Enable EVMC installation (e.g. make install)" ON)
|
||||||
|
|
||||||
|
option(EVMC_TESTING "Build everything (libraries, tools, examples, internal tests)" OFF)
|
||||||
|
|
||||||
|
cmake_dependent_option(EVMC_TOOLS "Build EVMC tools" OFF
|
||||||
|
"NOT EVMC_TESTING" ON)
|
||||||
|
|
||||||
|
option(EVMC_EXAMPLES "Build EVMC examples" ${EVMC_TOOLS})
|
||||||
|
option(HUNTER_ENABLED "Enable Hunter package manager support" ${EVMC_TOOLS})
|
||||||
|
|
||||||
if(HUNTER_ENABLED)
|
if(HUNTER_ENABLED)
|
||||||
set(HUNTER_CONFIGURATION_TYPES Release CACHE STRING "Build type of Hunter packages")
|
set(HUNTER_CONFIGURATION_TYPES Release CACHE STRING "Build type of Hunter packages")
|
||||||
include(HunterGate)
|
include(HunterGate)
|
||||||
|
|
Loading…
Reference in New Issue