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

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -