]> git.jsancho.org Git - lugaru.git/commit
Fix CXX flags in various CMake build types
authorRémi Verschelde <rverschelde@gmail.com>
Wed, 7 Dec 2016 21:44:56 +0000 (22:44 +0100)
committerRémi Verschelde <rverschelde@gmail.com>
Wed, 7 Dec 2016 21:44:56 +0000 (22:44 +0100)
commit20e924d9798018d8b9be675685678bbae90bb8cd
treede1e8382135941fec2d405fa81db837adcf1a0d6
parentf75ad3d437ec08cdbbeb32bdc15c94cabec56f71
Fix CXX flags in various CMake build types

The flags we were defining for _DEBUG and _RELEASE were similar to the default
CMake flags for those types, which get appended to CMAKE_CXX_FLAGS, so we only
need to customize the latter.

The final flags will be for e.g. RelWithDebInfo:
${CMAKE_CXX_FLAGS} ${CXXFLAGS} ${CMAKE_CXX_FLAGS_RELWITHDEBINFO}
with ${CXXFLAGS} taken from the environment.
CMakeLists.txt