summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDaniele E. Domenichelli <daniele.domenichelli@iit.it>2013-08-14 08:48:44 (GMT)
committerBrad King <brad.king@kitware.com>2013-10-08 14:30:12 (GMT)
commite9f46dfeb27109fa555b75e5c308c6782cc2855d (patch)
treee084473fe7d5d6aa39cf7565de50ccc58ef6c9e9 /Modules
parent56a79e1f8c947720b744282751aa2ee382f338a1 (diff)
downloadCMake-e9f46dfeb27109fa555b75e5c308c6782cc2855d.zip
CMake-e9f46dfeb27109fa555b75e5c308c6782cc2855d.tar.gz
CMake-e9f46dfeb27109fa555b75e5c308c6782cc2855d.tar.bz2
FindGTK2: Add config directories only if different from include ones
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindGTK2.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index fe37165..c443ca0 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -414,7 +414,7 @@ function(_GTK2_ADJUST_LIB_VARS _var)
set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GTK2_${_var}_INCLUDE_DIR}")
endif()
- if(GTK2_${_var}CONFIG_INCLUDE_DIR)
+ if(GTK2_${_var}CONFIG_INCLUDE_DIR AND NOT "${GTK2_${_var}CONFIG_INCLUDE_DIR}" STREQUAL "GTK2_${_var}_INCLUDE_DIR")
set_property(TARGET GTK2::${_basename} APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${GTK2_${_var}CONFIG_INCLUDE_DIR}")
endif()