get_target_property() called with non-existent target "pugixml"
Configuring paraview master with VTK_USE_SYSTEM_PUGIXML=ON errors with:
CMake Error at VTK/IO/CityGML/CMakeLists.txt:8 (get_target_property):
get_target_property() called with non-existent target "pugixml".
This is caused by Paraview providing a CMake/Findpugixml.cmake script file while the VTK/IO/CityGML relies on the imported target:
# pugixml does not set _INCLUDE_DIRS or _LIBRARIES
if(VTK_USE_SYSTEM_PUGIXML AND NOT pugixml_INCLUDE_DIRS)
find_package(pugixml REQUIRED)
get_target_property(pugixml_INCLUDE_DIRS pugixml INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(pugixml_LIBRARIES pugixml LOCATION)
include_directories(${pugixml_INCLUDE_DIRS})
vtk_module_link_libraries(vtkIOCityGML LINK_PRIVATE ${pugixml_LIBRARIES})
endif()
So when "find_package(pugixml REQUIRED)" is called it goes throug paraview's Findpugixml.cmake instead of pugixml-config.cmake.
Configuring goes trhough if I remove Findpugixml.cmake
Edited by Julien Schueller