I'm willing to set different macro for debug mode and release mode like that:
if (current_is_debug)
add_compile_definitions(TAPD)
else()
add_compile_definitions(TAP)
endif()
I think I shall not set CMAKE_BUILD_TYPE
in CMakeLists.txt because I'm to set compile mode when building, i.e.
cmake --build . --config Debug
cmake --build . --config Release
So Is there anyway to set different macro for different compile mode ? Thanks in advance.