[CMake] flags with spaces in CMAKE_CXX_FLAGS

James Bigler jamesbigler at gmail.com
Mon May 18 16:45:43 EDT 2009


Is it possible to have flags with spaces in them defined in CMAKE_CXX_FLAGS?

CMAKE_CXX_FLAGS = /DWIN32 /D_WINDOWS /W3 /Zm1000 /EHsc /GR "blah blah"

I need to be able to convert the CMAKE_CXX_FLAGS into a comma separated
string, and spaces in a flag is thwarting all my efforts.

separate_arguments separates "blah blah" into two items: "blah;blah", so I
need something different.

Thanks,
James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090518/eda7ca46/attachment.htm>


More information about the CMake mailing list