summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-07-04 10:01:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-07-04 10:01:29 +0900
commit48f8d96999dcd8c46c733b17d9d6c8b57e6f02ac (patch)
tree1bb0d044fa50c55ae2fdacc26c6ac70859151917
parent36e22fdfe9dc2996f9807db07af1f7e21009eb25 (diff)
downloadtdewebdev-48f8d96999dcd8c46c733b17d9d6c8b57e6f02ac.tar.gz
tdewebdev-48f8d96999dcd8c46c733b17d9d6c8b57e6f02ac.zip
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 <michele.calgaro@yahoo.it>
-rw-r--r--quanta/src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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