On 1. Oct, 2010, at 11:23 , David Aldrich wrote: > Hi > >> if(CMAKE_BUILD_TYPE EQUAL Debug) >> set(CMAKE_CXX_FLAGS -Wno-long-long -Wno-comment -Wwrite-strings >> -std=c++0x -pedantic-errors -pedantic -Wall -W -g -gdwarf-2 -Weffc++ >> -Wmain -Wextra) >> else(CMAKE_BUILD_TYPE EQUAL Debug) >> set(CMAKE_CXX_FLAGS -s etc) >> endif(CMAKE_BUILD_TYPE EQUAL Debug) > > As a total non-expert I don't see how this will work because if build type is > "Debug" then CMake will use CMAKE_CXX_FLAGS_DEBUG not CMAKE_CXX_FLAGS. > > Am I right? > > Best regards > > David
Wrong. CMAKE_CXX_FLAGS is always used, the configuration-specific values are appended to it. Michael
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake