cmake: Make EVMC_EXAMPLES a dependant option of EVMC_TESTING

When EVMC_TESTING is ON, the EVMC_EXAMPLES is forced to be ON as well (user can control the value).
This commit is contained in:
Paweł Bylica 2019-11-27 11:39:16 +01:00
parent 7f4d145090
commit 9b200a5bff
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,9 @@ option(EVMC_TESTING "Build everything (libraries, tools, examples, internal test
cmake_dependent_option(EVMC_TOOLS "Build EVMC tools" OFF
"NOT EVMC_TESTING" ON)
option(EVMC_EXAMPLES "Build EVMC examples" ${EVMC_TOOLS})
cmake_dependent_option(EVMC_EXAMPLES "Build EVMC examples" OFF
"NOT EVMC_TESTING" ON)
option(HUNTER_ENABLED "Enable Hunter package manager support" ${EVMC_TOOLS})
if(HUNTER_ENABLED)