diff --git a/scripts/pugixml-config.cmake.in b/scripts/pugixml-config.cmake.in index 58be6391..d9db8146 100644 --- a/scripts/pugixml-config.cmake.in +++ b/scripts/pugixml-config.cmake.in @@ -7,5 +7,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake") # for compatibility. if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11") add_library(pugixml INTERFACE IMPORTED) - target_link_libraries(pugixml INTERFACE pugixml::pugixml) + # Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10 + set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml) endif ()