You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
194 B
10 lines
194 B
3 years ago
|
include(CMakeDependentOption)
|
||
|
|
||
|
cmake_policy(SET CMP0127 NEW)
|
||
|
|
||
|
set(A 1)
|
||
|
set(B 1)
|
||
|
set(C 0)
|
||
|
cmake_dependent_option(USE_FOO "Use Foo" ON "A AND (B OR C)" OFF)
|
||
|
message(STATUS "USE_FOO='${USE_FOO}'")
|