[CMake] removing "\" from ${CMAKE_CXX_FLAGS}

naryniecki naryniecki at o2.pl
Thu Jan 28 03:02:38 EST 2010


Hi,

I need to use ${CMAKE_CXX_FLAGS} variable, but it contains unneeded char: "\".
I tried to remove it:
STRING(REPLACE '\\' " " FLAGS ${CMAKE_CXX_FLAGS})
but it didn't work. How can I do this?

Br.
Marek


More information about the CMake mailing list