diff options
Diffstat (limited to 'scripts')
-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 () |