Skip to content

Commit

Permalink
Merge pull request zeux#389 from mathstuf/fix-alias-compat-target
Browse files Browse the repository at this point in the history
cmake: avoid ALIAS target
  • Loading branch information
zeux authored Dec 15, 2020
2 parents 5a0fd5d + 4feab60 commit 9079552
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/pugixml-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -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 comments on commit 9079552

Please sign in to comment.