[CMake] [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized with
space
Bill Hoffman
bill.hoffman at kitware.com
Thu Dec 13 21:42:24 EST 2007
Rodolfo Lima wrote:
> Hi, I've being trying cmake 2.5 from CVS and I've come with some
> unwanted semicolons in compiler flags. Tracing this down, I've found
> that CMAKE_CXX_FLAGS (and CMAKE_C_FLAGS, etc...) is initialized with a
> space, so that
>
> CMakeLists.txt:
> message(X ${CMAKE_CXX_FLAGS} X)
>
> outputs:
> X X
>
> instead of:
> XX
>
> as I'd expect, since it's empty when cmake is started. Is this the
> intended behavior?
>
Do you have environment variables CFLAGS and CXXFLAGS set to have just a
space? Also, what OS/compiler are you using?
-Bill
More information about the CMake
mailing list