On Fri, 1 Oct 2010 11:05:34 +0200 Michael Wild <them...@gmail.com> wrote: > > > > 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) > > The problem with this is that the cache makes the promise to the user > that he can change the flags and you break it.
Sorry, I didn't understand that. I'm new to CMake. I'll go read up on the cache now. If I'm the only user, is this a problem? Regards, Adam J Richardson _______________________________________________ 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