aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/pugixml-config.cmake.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/pugixml-config.cmake.in b/scripts/pugixml-config.cmake.in
index 58be639..d9db814 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 ()