[CMake] Release flags on one target in debug build type

Konstantin Tokarev annulen at yandex.ru
Fri May 5 14:45:44 EDT 2017


Hello,

Is there any clear way to build specific target in "Debug" mode with flags that it would have in "Release"?

In particular, build this specific target without effect of CMAKE_CXX_FLAGS_DEBUG and CMAKE_C_FLAGS_DEBUG, while preserving flags added by target_compile_options

-- 
Regards,
Konstantin


More information about the CMake mailing list