From 48f8d96999dcd8c46c733b17d9d6c8b57e6f02ac Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Jul 2018 10:01:29 +0900 Subject: cmake: Use set_property( SOURCE ... COMPILE_DEFINITIONS ) instead of set_source_files_properties( ... COMPILE_FLAGS ) to avoid the problem of double escaping quotation marks. Signed-off-by: Michele Calgaro --- quanta/src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quanta/src/CMakeLists.txt b/quanta/src/CMakeLists.txt index d6b7ae37..ff7d5d4c 100644 --- a/quanta/src/CMakeLists.txt +++ b/quanta/src/CMakeLists.txt @@ -54,7 +54,7 @@ install( FILES x-webprj.desktop DESTINATION ${MIME_INSTALL_DIR}/application ) ##### quanta (executable) ####################### -set_source_files_properties( kqapp.cpp PROPERTIES COMPILE_FLAGS -DPREFIX=\\"${CMAKE_INSTALL_PREFIX}\\" ) +set_property( SOURCE kqapp.cpp APPEND PROPERTY COMPILE_DEFINITIONS PREFIX="${CMAKE_INSTALL_PREFIX}" ) tde_add_executable( quanta AUTOMOC SOURCES -- cgit v1.2.3