The syntax in your original post is incorrect.<br><br> set(CMAKE_CXX_FLAGS_DEBUG ${CMAKE_CXX_FLAGS_DEBUG} /Test1:"Test1")<br><br>should be:<br><br> set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /Test1:\"Test1\"")<br>
<br>i.e., to CMake, the set call should look like two arguments here: the variable name and a double quoted string with any nested quotes escaped with a \ character<div><br></div><div>The C and CXX flags variables are all single string values with multiple flags separated by spaces. With your original syntax, all the spaces get turned into semi-colons because there are multiple (more than just 2) arguments to the set command.</div>
<div><br></div><div><br></div><div>HTH,</div><div>David</div><div><br></div>