Mercurial > minori
diff dep/pugixml/scripts/pugixml-config.cmake.in @ 57:3c802806b74a
*: merge
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 28 Sep 2023 13:09:11 -0400 |
parents | d10b6c6b432e |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/dep/pugixml/scripts/pugixml-config.cmake.in Thu Sep 28 13:09:11 2023 -0400 @@ -0,0 +1,12 @@ +@PACKAGE_INIT@ + +include("${CMAKE_CURRENT_LIST_DIR}/pugixml-targets.cmake") + +# 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. +if (NOT TARGET pugixml AND (NOT DEFINED PACKAGE_FIND_VERSION OR PACKAGE_FIND_VERSION VERSION_LESS "1.11")) + add_library(pugixml INTERFACE IMPORTED) + # Equivalent to target_link_libraries INTERFACE, but compatible with CMake 3.10 + set_target_properties(pugixml PROPERTIES INTERFACE_LINK_LIBRARIES pugixml::pugixml) +endif ()