How to define a CMake macro in terms of another one?
add_definitions(-DMACRO1=1)
add_definitions(-DMACRO2=2)
add_definitions(-DMACRO3=${MACRO1}) # no effect
message( "COMPILE_DEFINITIONS = ${DirDefs}" )
This is the output I would like:
COMPILE_DEFINITIONS = MACRO1=1;MACRO2=2;MACRO3=1
This is what I get:
COMPILE_DEFINITIONS = MACRO1=1;MACRO2=2;MACRO3=