Rodolfo Lima wrote:
David Cole escreveu:
What about:
MESSAGE("X${CMAKE_CXX_FLAGS}X")
Same thing.
There is nothing in CMAKE_CXX_FLAGS -- it's just the behavior of MESSAGE
when you pass it a list instead of a single string...
I think there is... another proof:
if(${CMAKE_CXX_FLAGS} STREQUAL " ")
MESSAGE("equal!")
else(${CMAKE_CXX_FLAGS} STREQUAL " ")
MESSAGE("not equal!")
endif(${CMAKE_CXX_FLAGS} STREQUAL " ")
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)
-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake