Proposal: new signature set(variable BOOL condition) with if-condition syntax
New signatures
set(<variable> BOOL <condition> [PARENT_SCOPE])
set(<variable> BOOL <condition> CACHE <type> <docstring> [FORCE])
set(ENV{<variable>} BOOL <condition>)
where the condition is evaluated as in the if and while commands would allow to avoid stammering like
if(<condition>)
set(<variable> ON)
else()
set(<variable> OFF)
endif()