summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-09-04 14:03:54 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-09-04 14:03:54 (GMT)
commit103ddca336c6ccf2fca3c2b8897c8f9319f836d5 (patch)
tree2427cb38aa0b829e3b9720fd07a3953d83a660db
parentf1fcc7d8c3379321b1163ce49a5333bcdf0cd457 (diff)
parentcb8f0f7c813f718bf8a8f8896b52de03bc9c6106 (diff)
downloadCMake-103ddca336c6ccf2fca3c2b8897c8f9319f836d5.zip
CMake-103ddca336c6ccf2fca3c2b8897c8f9319f836d5.tar.gz
CMake-103ddca336c6ccf2fca3c2b8897c8f9319f836d5.tar.bz2
Merge topic 'fix-gtk2-missing-optional-includes'
cb8f0f7c FindGTK2: Fix missing optional include dirs.
-rw-r--r--Modules/FindGTK2.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index eaa5e55..67dc0eb 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -540,7 +540,11 @@ function(_GTK2_ADD_TARGET _var)
endif()
if(_${_var}_OPTIONAL_INCLUDES)
- _GTK2_ADD_TARGET_INCLUDE_DIRS(${_var} ${_${_var}_OPTIONAL_INCLUDES})
+ foreach(_D ${_${_var}_OPTIONAL_INCLUDES})
+ if(_D)
+ _GTK2_ADD_TARGET_INCLUDE_DIRS(${_var} ${_D})
+ endif()
+ endforeach()
endif()
if(GTK2_USE_IMPORTED_TARGETS)