aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/forge/cmake_config.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/forge/cmake_config.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/forge/cmake_config.patch')
-rw-r--r--vcpkg/ports/forge/cmake_config.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/forge/cmake_config.patch b/vcpkg/ports/forge/cmake_config.patch
new file mode 100644
index 0000000..4775ec0
--- /dev/null
+++ b/vcpkg/ports/forge/cmake_config.patch
@@ -0,0 +1,27 @@
+diff --git a/CMakeModules/ForgeConfig.cmake.in b/CMakeModules/ForgeConfig.cmake.in
+index 6fb18ac..5a3b000 100644
+--- a/CMakeModules/ForgeConfig.cmake.in
++++ b/CMakeModules/ForgeConfig.cmake.in
+@@ -83,3 +83,22 @@ if ((TARGET Forge::forge AND Forge_BINARY_EXISTS) OR TARGET forge)
+ else ()
+ set(Forge_FOUND OFF)
+ endif ()
++
++if(Forge_FOUND)
++ # Check for dependencies when Forge binary and cmake files are found
++ include(CMakeFindDependencyMacro)
++
++ find_dependency(glad CONFIG)
++ find_dependency(glfw3 CONFIG)
++ find_dependency(freetype CONFIG)
++ find_dependency(freeimage CONFIG)
++ find_dependency(OpenGL)
++
++ if(NOT WIN32)
++ find_package(PkgConfig REQUIRED)
++ pkg_check_modules(fontconfig REQUIRED)
++ if(NOT fontconfig_FOUND)
++ message(FATAL_ERROR "Please install Fontconfig dependency")
++ endif()
++ endif()
++endif()