diff options
author | Arseny Kapoulkine <arseny.kapoulkine@gmail.com> | 2020-12-14 19:47:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 19:47:56 -0800 |
commit | 907955280f11f659eb9354a07104359e591319c2 (patch) | |
tree | 869e8319b22943b4cc13df484b8727bcb787113d | |
parent | 5a0fd5d85f2b31f44c8df84a4bc51f453cef57ac (diff) | |
parent | 4feab60bb7ecced7cea18c570ca9a39a08246a57 (diff) | |
download | pugixml-907955280f11f659eb9354a07104359e591319c2.zip pugixml-907955280f11f659eb9354a07104359e591319c2.tar.gz pugixml-907955280f11f659eb9354a07104359e591319c2.tar.bz2 |
Merge pull request #389 from mathstuf/fix-alias-compat-targetv1.11.2
cmake: avoid ALIAS target
-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 5af3750..58be639 100644 --- a/scripts/pugixml-config.cmake.in +++ b/scripts/pugixml-config.cmake.in @@ -6,5 +6,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake") # version or not requesting one at all), provide the old imported target name # for compatibility. if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11") - add_library(pugixml ALIAS pugixml::pugixml) + add_library(pugixml INTERFACE IMPORTED) + target_link_libraries(pugixml INTERFACE pugixml::pugixml) endif () |