oranges_make_config_generator_expressionsΒΆ
include (OrangesGeneratorExpressions)
View the full docs for this module
.
oranges_make_config_generator_expressions ([DEBUG <debugVar>] [RELEASE <releaseVar>])
Creates generator expressions to evaluate if the active configuration is debug or release,
and populates the variables <debugVar>
and <releaseVar>
in the calling scope.
The created generator expressions can be composed like so:
oranges_make_config_generator_expressions (DEBUG config_is_debug
RELEASE config_is_release)
target_compile_options (myTarget PUBLIC
$<${config_is_debug}:-O0>
$<${config_is_release}:-O3>)