[CMake] Re: [cmake 2.5 CVS] CMAKE_${LANG}_FLAGS is initialized
with space
Bill Hoffman
bill.hoffman at kitware.com
Fri Dec 14 14:27:20 EST 2007
Rodolfo Schulz de Lima wrote:
> Bill Hoffman escreveu:
>> Can you give an example that shows the unwanted semicolons?
>
> For sure. Here's the setup:
>
> test.c:
> int main() {}
>
> CMakeLists.txt:
> list(APPEND CMAKE_C_FLAGS -Wall)
> add_executable(test test.c)
>
OK, list append is having the problem. I will try and figure out why
it has the space. For now, you could try this:
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
-Bill
More information about the CMake
mailing list