From 93c1526bae5ae82d83a24b984e95fee142a47cc3 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 4 Jul 2018 01:20:59 +0200 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michele Calgaro Signed-off-by: Slávek Banko (cherry picked from commit 967cf90889abe8df9f6c262319a92a5c8a660f12) --- kcontrol/iccconfig/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kcontrol/iccconfig') diff --git a/kcontrol/iccconfig/CMakeLists.txt b/kcontrol/iccconfig/CMakeLists.txt index 4af3af694..e3b47ce0d 100644 --- a/kcontrol/iccconfig/CMakeLists.txt +++ b/kcontrol/iccconfig/CMakeLists.txt @@ -28,7 +28,7 @@ install( FILES iccconfig.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} ) ##### kcm_iccconfig (module) #################### -set_source_files_properties( iccconfig.cpp PROPERTIES COMPILE_FLAGS -DKDE_CONFDIR=\\"${TDE_CONFIG_DIR}\\" ) +set_property( SOURCE iccconfig.cpp APPEND PROPERTY COMPILE_DEFINITIONS KDE_CONFDIR="${TDE_CONFIG_DIR}" ) tde_add_kpart( kcm_iccconfig AUTOMOC SOURCES -- cgit v1.2.1