[CMake] Re: [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized
with space
Bill Hoffman
bill.hoffman at kitware.com
Fri Dec 14 08:55:56 EST 2007
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
More information about the CMake
mailing list