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

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

Reply via email to