[Cmake] CMake 1.6 beta problem

Ian Scott ian.m.scott at stud.man.ac.uk
Wed Jan 22 14:27:49 EST 2003


Small quibble.

I'm currently using 1.6 beta 1, but I don't recall hearing that this was
fixed in beta 2.

I think the new CMAKE_CXX_FLAGS_RELEASE, etc variables are not set correctly
by CMAKE for gcc.

The defaults are
CMAKE_CXX_FLAGS_DEBUG            -g
CMAKE_CXX_FLAGS_MINSIZEREL       -O3
CMAKE_CXX_FLAGS_RELEASE          -O2
CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g

I think that this should be

CMAKE_CXX_FLAGS_DEBUG            -g
CMAKE_CXX_FLAGS_MINSIZEREL       -Os
CMAKE_CXX_FLAGS_RELEASE          -O3
CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2 -g

Ian.





More information about the CMake mailing list