Commit ff052b3d authored by Ben Boeckel's avatar Ben Boeckel

vtkModule: check for imported targets

The real check should be whether the target is an *imported* target, not
an alias. The latter only happens in a build where namespaces are used.
parent ab96c9c1
......@@ -2677,13 +2677,12 @@ $<$<BOOL:${_vtk_hierarchy_genex_include_directories}>:\n-I\'$<JOIN:${_vtk_hierar
"${_vtk_hierarchy_depend_hierarchy}")
# Find the hierarchy target of the module.
get_property(_vtk_hierarchy_module_is_alias
get_property(_vtk_hierarchy_module_is_imported
TARGET "${_vtk_hierarchy_depend}"
PROPERTY ALIASED_TARGET
SET)
# Non-alias target modules are external and should already have their file
PROPERTY IMPORTED)
# Imported target modules are external and should already have their file
# generated.
if (NOT _vtk_hierarchy_module_is_alias)
if (_vtk_hierarchy_module_is_imported)
continue ()
endif ()
......
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