Hi,

I've just noticed that re-running cmake and changing -DCMAKE_CXX_FLAGS
doesn't work as one would expect. This claims to be rebuilding the
makefiles, however after running a make clean and make VERBOSE=1 I don't
see the flags being applied.

To make this clear, what I'm doing is:

cmake ../
make
cmake -DCMAKE_CXX_FLAGS=-g ../
make clean
make VERBOSE=1

And the -g flag is not there on the g++ line. Sample CMakeLists.txt:

,----
| add_executable(foo main.cpp)
`----

Looking at the cache I can't see the -g flag there - except in the DEBUG
versions where it always appears.

Should I file a bugreport?

Andreas

-- 
You'll be called to a post requiring ability in handling groups of people.
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to