10 lines
198 B
CMake
10 lines
198 B
CMake
include_guard(GLOBAL)
|
|
|
|
macro(set_ternary RESULT CONDITION TRUE_VALUE FALSE_VALUE)
|
|
if(${CONDITION})
|
|
set(${RESULT} ${TRUE_VALUE})
|
|
else()
|
|
set(${RESULT} ${FALSE_VALUE})
|
|
endif()
|
|
endmacro()
|