ba39d7e9d0
Before this change backslashes in strings were escaped during compile flags adds via AppendFlag(). But global flags like OTHER_CPLUSPLUSFLAGS are not added as flags but as plain strings so they were not escaped properly. Now the escaping is performed within cmXCodeObject::PrintString() which ensures that strings are always encoded.
4 lines
111 B
CMake
4 lines
111 B
CMake
enable_language(CXX)
|
|
string(APPEND CMAKE_CXX_FLAGS " -DKDESRCDIR=\\\"foo\\\"")
|
|
add_library(foo STATIC foo.cpp)
|