summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2016-07-13 09:31:13 (GMT)
committerRolf Eike Beer <kde@opensource.sf-tec.de>2016-07-13 17:28:15 (GMT)
commitab594f86a7d5b5f93df52af2d25f36610f2ed880 (patch)
treeef850fe11976b040cab1b114e1c035cc387ec2ed
parente4d2bc48ffe5c28f16f98305b7aaf566321aa4d1 (diff)
simplify setting KGPG_DEBUG_TRANSACTIONS compiler define
-rw-r--r--CMakeLists.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 49492e8..77d1bd1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -221,13 +221,7 @@ kconfig_add_kcfg_files(kgpg_SRCS kgpgsettings.kcfgc )
add_executable(kgpg ${kgpg_SRCS} ${kgpg_HDRS})
if (KGPG_DEBUG_TRANSACTIONS)
- get_target_property(KGPG_FLAGS kgpg COMPILE_DEFINITIONS)
- if (NOT KGPG_FLAGS)
- # get rid of the NOTFOUND
- set(KGPG_FLAGS)
- endif (NOT KGPG_FLAGS)
- list(APPEND KGPG_FLAGS KGPG_DEBUG_TRANSACTIONS)
- set_target_properties(kgpg PROPERTIES COMPILE_DEFINITIONS "${KGPG_FLAGS}")
+ set_property(SOURCE ${kgpg_transaction_SRCS} APPEND PROPERTY COMPILE_DEFINITIONS "KGPG_DEBUG_TRANSACTIONS")
endif (KGPG_DEBUG_TRANSACTIONS)
set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS "KGPG_VERSION=\"${KDE_APPLICATIONS_VERSION}\"")