blob: 00d440d37e39c4c9b0da40a81ba26c4cccb806e8 (
plain)
1
2
3
4
5
6
7
8
9
|
include(CMakeDependentOption)
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}'")
cmake_dependent_option(USE_BAR "Use Bar" ON "A;B" OFF)
message(STATUS "USE_BAR='${USE_BAR}'")
|