[CMake] Re: [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized with
	space
    Rodolfo Lima 
    rodolfo at rodsoft.org
       
    Fri Dec 14 07:43:12 EST 2007
    
    
  
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 " ")
This returns "equal!" in my system...
    
    
More information about the CMake
mailing list