c++ - CMake: default flags depending on build type -
c++ - CMake: default flags depending on build type -
i'm using cmake 2.8.12.2 in project , noticed depending on build type, adds flags compiler. in case of release build type, adds -o3
, -ndebug
.
the thing since project going used in different platforms don't know cmake version they're using (above 2.8 of course) , i'd know if there default flags each build type, or if feature depends on version of cmake.
i know add together flags variables cmake_cxx_flags_*
, want maintain compilation "clean" adding flags 1 time , not overriding done.
this add together "-wall" release flags
set(cmake_cxx_flags_release "${cmake_cxx_flags_release} -wall")
c++ compilation cmake
Comments
Post a Comment