vcpkg/scripts/test_ports/vcpkg-ci-blender/fix_epoxy.patch

16 lines
656 B
Diff

diff --git a/build_files/cmake/Modules/FindEpoxy.cmake b/build_files/cmake/Modules/FindEpoxy.cmake
--- a/build_files/cmake/Modules/FindEpoxy.cmake
+++ b/build_files/cmake/Modules/FindEpoxy.cmake
@@ -9,6 +9,11 @@
# This can also be an environment variable.
# Epoxy_FOUND, If false, do not try to use epoxy.
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(epoxy QUIET IMPORTED_TARGET epoxy)
+set(Epoxy_INCLUDE_DIR "${epoxy_INCLUDE_DIRS}" CACHE INTERNAL "vcpkg")
+set(Epoxy_LIBRARY "PkgConfig::epoxy" CACHE INTERNAL "vcpkg")
+
# If `EPOXY_ROOT_DIR` was defined in the environment, use it.
if(DEFINED EPOXY_ROOT_DIR)
# Pass.