I have several build profiles in CLion -> Settings -> Build, Execution, Deployment -> CMake
. How can I set the preprocessor definitions for each profile, regardless of which compiler I use?
Settings -> Build, Execution, Deployment -> CMake
.CMake options
field: -DYOUR_DEFINE_VARIABLE=1
if (YOUR_DEFINE_VARIABLE)
add_definitions(-DYOUR_DEFINE_VARIABLE=1)
endif (YOUR_DEFINE_VARIABLE)