From e9f46dfeb27109fa555b75e5c308c6782cc2855d Mon Sep 17 00:00:00 2001 From: "Daniele E. Domenichelli" Date: Wed, 14 Aug 2013 10:48:44 +0200 Subject: [PATCH] FindGTK2: Add config directories only if different from include ones --- Modules/FindGTK2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index fe3716551..c443ca094 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()