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

Rodolfo Lima rodolfo at rodsoft.org
Sun Dec 16 19:41:15 EST 2007


I've managed to debug and correct this 'bug'. The bug report is at:
http://www.cmake.org/Bug/view.php?id=6167

I really think that compiler flags should be treated like a list of
flags instead of a string because this way, IMHO, it's easier to deal
with space in flag parameters etc, to add a flag to the compiler (using
LIST(APPEND...) instead of SET(FLAG "${FLAG} -other_flag), which is ugly
and to remove a flag using LIST(REMOVE_ITEM...).

Regards,
rod



More information about the CMake mailing list