Skip to content

Commit 9079552

Browse files
authored
Merge pull request #389 from mathstuf/fix-alias-compat-target
cmake: avoid ALIAS target
2 parents 5a0fd5d + 4feab60 commit 9079552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/pugixml-config.cmake.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
66
# version or not requesting one at all), provide the old imported target name
77
# for compatibility.
88
if (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")
9-
add_library(pugixml ALIAS pugixml::pugixml)
9+
add_library(pugixml INTERFACE IMPORTED)
10+
target_link_libraries(pugixml INTERFACE pugixml::pugixml)
1011
endif ()

0 commit comments

Comments
 (0)