summaryrefslogtreecommitdiff
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-08-14 10:46:42 +0200
committerBrad King <brad.king@kitware.com>2013-10-08 10:30:12 -0400
commit56a79e1f8c947720b744282751aa2ee382f338a1 (patch)
treea5700cc23804b2b28e05203568504e3a3919d9e5 /Modules/FindGTK2.cmake
parent4b47586a08741c530386f08be77b5da870bc130a (diff)
downloadcmake-56a79e1f8c947720b744282751aa2ee382f338a1.tar.gz
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 3f912bb7e8..fe3716551c 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)