aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/dbus-cxx/create-cmakeconfig.patch
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/dbus-cxx/create-cmakeconfig.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/dbus-cxx/create-cmakeconfig.patch')
-rw-r--r--vcpkg/ports/dbus-cxx/create-cmakeconfig.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/vcpkg/ports/dbus-cxx/create-cmakeconfig.patch b/vcpkg/ports/dbus-cxx/create-cmakeconfig.patch
new file mode 100644
index 0000000..e727980
--- /dev/null
+++ b/vcpkg/ports/dbus-cxx/create-cmakeconfig.patch
@@ -0,0 +1,85 @@
+diff --git a/cmake/dbus-cxxConfig.cmake.in b/cmake/dbus-cxxConfig.cmake.in
+new file mode 100644
+index 0000000..42181f0
+--- /dev/null
++++ b/cmake/dbus-cxxConfig.cmake.in
+@@ -0,0 +1,79 @@
++@PACKAGE_INIT@
++
++set(dbus-cxx_KNOWN_COMPONENTS "glib" "qt" "uv")
++
++include(CMakeFindDependencyMacro)
++
++find_dependency(Threads)
++find_dependency(sigc++-3)
++
++if(@ENABLE_GLIB_SUPPORT@)
++ find_dependency(PkgConfig)
++ pkg_check_modules(glib REQUIRED IMPORTED_TARGET glib-2.0)
++endif()
++
++if(@ENABLE_UV_SUPPORT@)
++ find_dependency(libuv)
++endif()
++
++if(@ENABLE_QT_SUPPORT@)
++ find_dependency(Qt6 COMPONENTS Core)
++endif()
++
++include("${CMAKE_CURRENT_LIST_DIR}/dbus-cxxTargets.cmake")
++
++if("glib" IN_LIST dbus-cxx_FIND_COMPONENTS)
++ if(@ENABLE_GLIB_SUPPORT@)
++ if(TARGET dbus-cxx::dbus-cxx-glib)
++ set(dbus-cxx_glib_FOUND TRUE)
++ else()
++ set(dbus-cxx_glib_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_glib)
++ message(FATAL_ERROR "Requested 'glib' component but target 'dbus-cxx::dbus-cxx-glib' is not available.")
++ endif()
++ endif()
++ else()
++ set(dbus-cxx_glib_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_glib)
++ message(FATAL_ERROR "Requested 'glib' component but dbus-cxx was built without glib support.")
++ endif()
++ endif()
++endif()
++
++if("uv" IN_LIST dbus-cxx_FIND_COMPONENTS)
++ if(@ENABLE_UV_SUPPORT@)
++ if(TARGET dbus-cxx::dbus-cxx-uv)
++ set(dbus-cxx_uv_FOUND TRUE)
++ else()
++ set(dbus-cxx_uv_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_uv)
++ message(FATAL_ERROR "Requested 'uv' component but target 'dbus-cxx::dbus-cxx-uv' is not available.")
++ endif()
++ endif()
++ else()
++ set(dbus-cxx_uv_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_uv)
++ message(FATAL_ERROR "Requested 'uv' component but dbus-cxx was built without uv support.")
++ endif()
++ endif()
++endif()
++
++if("qt" IN_LIST dbus-cxx_FIND_COMPONENTS)
++ if(@ENABLE_QT_SUPPORT@)
++ if(TARGET dbus-cxx::dbus-cxx-qt)
++ set(dbus-cxx_qt_FOUND TRUE)
++ else()
++ set(dbus-cxx_qt_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_qt)
++ message(FATAL_ERROR "Requested 'qt' component but target 'dbus-cxx::dbus-cxx-qt' is not available.")
++ endif()
++ endif()
++ else()
++ set(dbus-cxx_qt_FOUND FALSE)
++ if(dbus-cxx_FIND_REQUIRED_qt)
++ message(FATAL_ERROR "Requested 'qt' component but dbus-cxx was built without qt support.")
++ endif()
++ endif()
++endif()
++
++check_required_components(dbus-cxx)