comparison dep/pugixml/scripts/pugixml-config.cmake.in @ 55:d10b6c6b432e

add xml lib, we will need to use it eventually
author Paper <mrpapersonic@gmail.com>
date Tue, 26 Sep 2023 12:37:08 -0400
parents
children
comparison
equal deleted inserted replaced
54:466ac9870df9 55:d10b6c6b432e
1 @PACKAGE_INIT@
2
3 include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake")
4
5 # If the user is not requiring 1.11 (either by explicitly requesting an older
6 # version or not requesting one at all), provide the old imported target name
7 # for compatibility.
8 if (NOT TARGET pugixml AND (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11"))
9 add_library(pugixml INTERFACE IMPORTED)
10 # Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10
11 set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml)
12 endif ()