Commit 4b47586a authored by Daniele E. Domenichelli's avatar Daniele E. Domenichelli Committed by Brad King
Browse files

FindGTK2: Add check to ensure that target exists

parent 61242ccc
...@@ -456,11 +456,13 @@ function(_GTK2_ADD_TARGET_DEPENDS _var) ...@@ -456,11 +456,13 @@ function(_GTK2_ADD_TARGET_DEPENDS _var)
string(TOLOWER "${_var}" _basename) string(TOLOWER "${_var}" _basename)
get_target_property(_configs GTK2::${_basename} IMPORTED_CONFIGURATIONS) if(TARGET GTK2::${_basename})
_GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} INTERFACE_LINK_LIBRARIES ${ARGN}) get_target_property(_configs GTK2::${_basename} IMPORTED_CONFIGURATIONS)
foreach(_config ${_configs}) _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} INTERFACE_LINK_LIBRARIES ${ARGN})
_GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} IMPORTED_LINK_INTERFACE_LIBRARIES_${_config} ${ARGN}) foreach(_config ${_configs})
endforeach() _GTK2_ADD_TARGET_DEPENDS_INTERNAL(${_var} IMPORTED_LINK_INTERFACE_LIBRARIES_${_config} ${ARGN})
endforeach()
endif()
endfunction() endfunction()
function(_GTK2_ADD_TARGET_INCLUDE_DIRS _var) function(_GTK2_ADD_TARGET_INCLUDE_DIRS _var)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment