summaryrefslogtreecommitdiffstats
path: root/kcontrol/tdm
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-07-04 01:20:59 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-07-04 01:21:47 +0200
commit967cf90889abe8df9f6c262319a92a5c8a660f12 (patch)
tree404b812ddfa9e8d85e7250d344abaaba28cde4e3 /kcontrol/tdm
parenta359fef24e132b22b7a1667f826b0fb1bddf331f (diff)
downloadtdebase-967cf90889abe8df9f6c262319a92a5c8a660f12.tar.gz
tdebase-967cf90889abe8df9f6c262319a92a5c8a660f12.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> Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kcontrol/tdm')
-rw-r--r--kcontrol/tdm/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/kcontrol/tdm/CMakeLists.txt b/kcontrol/tdm/CMakeLists.txt
index 7c2a1f887..4283d0612 100644
--- a/kcontrol/tdm/CMakeLists.txt
+++ b/kcontrol/tdm/CMakeLists.txt
@@ -29,8 +29,7 @@ install( FILES tdm.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
##### kcm_tdm (module) ##########################
-set_source_files_properties( background.cpp PROPERTIES COMPILE_FLAGS -DKDE_CONFDIR=\\"${TDE_CONFIG_DIR}\\" )
-set_source_files_properties( main.cpp PROPERTIES COMPILE_FLAGS -DKDE_CONFDIR=\\"${TDE_CONFIG_DIR}\\" )
+set_property( SOURCE background.cpp main.cpp APPEND PROPERTY COMPILE_DEFINITIONS KDE_CONFDIR="${TDE_CONFIG_DIR}" )
tde_add_kpart( kcm_tdm AUTOMOC
SOURCES