2019-09-28 13:02:55 -07:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
|
2020-12-02 17:13:35 -05:00
|
|
|
|
|
|
|
# If the user is not requiring 1.11 (either by explicitly requesting an older
|
|
|
|
# version or not requesting one at all), provide the old imported target name
|
|
|
|
# for compatibility.
|
2020-12-22 08:15:11 -08:00
|
|
|
if (NOT TARGET pugixml AND (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11"))
|
2020-12-10 07:52:35 -05:00
|
|
|
add_library(pugixml INTERFACE IMPORTED)
|
2020-12-18 09:07:44 -08:00
|
|
|
# Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10
|
|
|
|
set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml)
|
2020-12-02 17:13:35 -05:00
|
|
|
endif ()
|