[CMake] [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized with space

David Cole david.cole at kitware.com
Fri Dec 14 07:35:08 EST 2007


What about:
MESSAGE("X${CMAKE_CXX_FLAGS}X")

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...

On 12/13/07, Rodolfo Lima <rodolfo at rodsoft.org> 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?
>
> Regards,
> Rodolfo Lima.
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20071214/9b73e36d/attachment.htm


More information about the CMake mailing list