diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-12-18 09:52:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-18 09:52:06 -0800 |
commit | 0e3f1699ffab5f820060fe99c61f0f9495c0c5b6 (patch) | |
tree | 975daf2d7b07daf8e560f504a6fae9135a4cc935 | |
parent | 907955280f11f659eb9354a07104359e591319c2 (diff) | |
parent | e2bc4f4af2bccc4ffa54f732b4fa642c8758a7fc (diff) | |
download | pugixml-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.in | 3 |
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 () |