Clinton Chau wrote:
> In order to change the compiler options, and to submit additional
> preprocessor defines, I have ended up having to modify the
> CMAKE_CXX_FLAGS property in the CMakeLists.txt in the root of the project.
> 
> Am I just not understanding how CMake works, since I am new to using CMake?

If the CMakeLists.txt file contains

SET(CMAKE_CXX_FLAGS ...)

then it always overrides the cached value.  The cache value is just used
to initialize the listfile variable.  The generators use the final value
from the listfile.

-Brad
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to