Merge topic 'fix-gtk2-missing-optional-includes'

cb8f0f7c FindGTK2: Fix missing optional include dirs.
This commit is contained in:
Brad King 2014-09-04 10:03:54 -04:00 committed by CMake Topic Stage
commit 103ddca336
1 changed files with 5 additions and 1 deletions

View File

@ -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)