[CMake] STRING(REPLACE eats semi-colons

Bill Hoffman bill.hoffman at kitware.com
Thu Aug 2 22:41:56 EDT 2007


JD Smith wrote:
>
> set( f "this; ...is: a; test")
> MESSAGE(${f})
> STRING(REPLACE is was f ${f})
> MESSAGE(${f})
>
> Probably to do with the syntax for lists, but is there a way to avoid 
> STRING(REPLACE from eating semi-colons?  I'm trying to replace a sed 
> call with pure CMAKE, but in text replacing on an XML file, it's doing 
> damage.
The problem is in the message command.

Try message("${f}")

-Bill



More information about the CMake mailing list