summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-08-14 08:46:42 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 14:30:12 (GMT)
commit56a79e1f8c947720b744282751aa2ee382f338a1 (patch)
treea5700cc23804b2b28e05203568504e3a3919d9e5 /Modules/FindGTK2.cmake
parent4b47586a08741c530386f08be77b5da870bc130a (diff)
downloadCMake-56a79e1f8c947720b744282751aa2ee382f338a1.zip
CMake-56a79e1f8c947720b744282751aa2ee382f338a1.tar.gz
CMake-56a79e1f8c947720b744282751aa2ee382f338a1.tar.bz2
FindGTK2: Set INTERFACE_COMPILE_DEFINITIONS target property only if not empty
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 3f912bb..fe37165 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -418,7 +418,9 @@ function(_GTK2_ADJUST_LIB_VARS _var)
set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GTK2_${_var}CONFIG_INCLUDE_DIR}")
endif()
- set_property(TARGET GTK2::${_basename} PROPERTY INTERFACE_COMPILE_DEFINITIONS "${GTK2_DEFINITIONS}")
+ if(GTK2_DEFINITIONS)
+ set_property(TARGET GTK2::${_basename} PROPERTY INTERFACE_COMPILE_DEFINITIONS "${GTK2_DEFINITIONS}")
+ endif()
if(GTK2_USE_IMPORTED_TARGETS)
set(GTK2_${_var}_LIBRARY GTK2::${_basename} PARENT_SCOPE)