aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/gflags/portfile.cmake5
-rw-r--r--ports/gflags/revert-fix-install.patch15
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/gflags/portfile.cmake b/ports/gflags/portfile.cmake
index 0e89a8f16..dcbbb7426 100644
--- a/ports/gflags/portfile.cmake
+++ b/ports/gflags/portfile.cmake
@@ -12,6 +12,11 @@ vcpkg_from_github(
HEAD_REF master
)
+vcpkg_apply_patches(
+ SOURCE_PATH ${SOURCE_PATH}
+ PATCHES "${CMAKE_CURRENT_LIST_DIR}/revert-fix-install.patch"
+)
+
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
diff --git a/ports/gflags/revert-fix-install.patch b/ports/gflags/revert-fix-install.patch
new file mode 100644
index 000000000..80793b65c
--- /dev/null
+++ b/ports/gflags/revert-fix-install.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 922a038..7d6af45 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -410,8 +410,8 @@ if (OS_WINDOWS)
+ set (RUNTIME_INSTALL_DIR "bin")
+ set (LIBRARY_INSTALL_DIR "lib")
+ set (INCLUDE_INSTALL_DIR "include")
+- set (CONFIG_INSTALL_DIR "share/${PACKAGE_NAME}")
+- set (PKGCONFIG_INSTALL_DIR "")
++ set (CONFIG_INSTALL_DIR "lib/cmake/${PACKAGE_NAME}")
++ set (PKGCONFIG_INSTALL_DIR)
+ else ()
+ set (RUNTIME_INSTALL_DIR bin)
+ # The LIB_INSTALL_DIR and LIB_SUFFIX variables are used by the Fedora