[CMake] Adding a compiler flag globally

Robert Bielik robert.bielik at xponaut.com
Sun Jan 20 06:13:10 EST 2008


I'd like to add a compiler flag globally for all targets within a project (multiple targets and CMakeLists.txt files),
i.e. I don't want to use SET_TARGET_PROPERTIES.

I tried updating the CMAKE_CXX_FLAGS_RELEASE but nothing happens, the added flag doesn't show up in the cache.

Ideas?
TIA
/R



More information about the CMake mailing list