Skip to content
Snippets Groups Projects
Unverified Commit 90795528 authored by Arseny Kapoulkine's avatar Arseny Kapoulkine Committed by GitHub
Browse files

Merge pull request #389 from mathstuf/fix-alias-compat-target

cmake: avoid ALIAS target
parents 5a0fd5d8 4feab60b
No related branches found
Tags v1.11.2
No related merge requests found
......@@ -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 ()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment