[CMake] Re: [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized with space

Rodolfo Schulz de Lima rodolfo at rodsoft.org
Fri Dec 14 10:38:39 EST 2007


Bill Hoffman escreveu:

> What is in your CMakeCache.txt file?
> 
> Also, does this happen with a very simple one line cmakelist.txt file?
> 
> add_library(foo.cxx)
> (of course you will have to create an empty foo.cxx)

I always test with a clean CMakeCache.txt (i.e., without it), and don't 
even add a library (or executable). Just a simple one-liner, like:
message(X ${CMAKE_CPP_FLAGS} X)

The CMakeCache.txt created contains

//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=' '

and

//Flags for C compiler.
CMAKE_C_FLAGS:STRING=' '

The same happens with cmake-2.4.7

Regards,
rod



More information about the CMake mailing list