views:

26

answers:

0

I need to get this as a result in the preprocessor definitions of the msvc generator:

MYPATH=\"d:\\;.\\Lib\"

But when I use the following escape sequence in set_source_files_properties:

set_source_files_properties(source.c PROPERTIES COMPILE_FLAGS "-DMYPATH=\\\"d:\\\;.\\\\Lib\\\"")

the generated result is: MYPATH=\"d:\";".\Lib\"

Note the double-quoted semicolon. Is there a quoting workaround to allow unquoted semicolons?