aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2020-12-18 09:52:06 -0800
committerGitHub <noreply@github.com>2020-12-18 09:52:06 -0800
commit0e3f1699ffab5f820060fe99c61f0f9495c0c5b6 (patch)
tree975daf2d7b07daf8e560f504a6fae9135a4cc935
parent907955280f11f659eb9354a07104359e591319c2 (diff)
parente2bc4f4af2bccc4ffa54f732b4fa642c8758a7fc (diff)
downloadpugixml-1.11.3.zip
pugixml-1.11.3.tar.gz
pugixml-1.11.3.tar.bz2
Merge pull request #391 from zeux/cmake-omgv1.11.3
Fix compatibility issue with CMake 3.10
-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 ()