[CMake] No <LANG>_FLAGS_<CONFIG> target property.
Michael Wild
themiwi at gmail.com
Mon Mar 14 03:42:03 EDT 2011
On 03/14/2011 12:42 AM, Óscar Fuentes wrote:
> There are target properties such as LINK_FLAGS and LINK_FLAGS_<CONFIG>,
> but I don't see properties for setting compiler flags. This makes
> impossible to build two targets on the same CMakeLists.txt with
> different compiler flags (I was told that the last value of
> CMAKE_<LANG>_FLAGS_<CONFIG> applies to all targets on that
> CMakeLists.txt).
>
> So why no per-target compile flags?
You could misuse COMPILE_DEFINITIONS and COMPILE_DEFINITIONS_<CONFIG>
for that...
Michael
More information about the CMake
mailing list