aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/librsvg/unofficial-librsvg-config.cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/librsvg/unofficial-librsvg-config.cmake')
-rw-r--r--vcpkg/ports/librsvg/unofficial-librsvg-config.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake b/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake
new file mode 100644
index 0000000..6bff45d
--- /dev/null
+++ b/vcpkg/ports/librsvg/unofficial-librsvg-config.cmake
@@ -0,0 +1,14 @@
+file(READ "${CMAKE_CURRENT_LIST_DIR}/../librsvg/usage" usage)
+message(WARNING "find_package(unofficial-librsvg) is deprecated.\n${usage}")
+
+include(CMakeFindDependencyMacro)
+find_dependency(PkgConfig)
+pkg_check_modules(VCPKG_LIBRSVG librsvg-2.0 IMPORTED_TARGET)
+if(NOT VCPKG_LIBRSVG_FOUND)
+ set(${CMAKE_FIND_PACKAGE_NAME}_FOUND 0)
+elseif(NOT TARGET unofficial::librsvg::rsvg-2)
+ add_library(unofficial::librsvg::rsvg-2 INTERFACE IMPORTED)
+ set_target_properties(unofficial::librsvg::rsvg-2 PROPERTIES
+ INTERFACE_LINK_LIBRARIES PkgConfig::VCPKG_LIBRSVG
+ )
+endif()