I’ve got something like this in the CMakeLists file:
set(CMAKE_CXX_FLAGS "-g -Wextra -DFLAG1=A")
Later in the file, I need to check if FLAG1 has been defined. Is it possible to do something like this?
IF(${FLAG1} EQUAL A)
#Do something
ELSE()
#Do something else
ENDIF()
Well, you can do