vcpkg/ports/gflags/0001-patch-dir.patch
Stefano Sinigardi 9c10548fe9 [gflags] remove old patch, fixed upstream, introduce a new patch to fix wrong config path (#2917)
* [gflags] remove patch, fixed upstream

* [gflags] fix gflags-config.cmake wrong path
2018-03-01 08:30:03 -08:00

14 lines
680 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3709073..8e919cb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -503,7 +503,7 @@ endif ()
# ----------------------------------------------------------------------------
# installation rules
set (EXPORT_NAME ${PACKAGE_NAME}-targets)
-file (RELATIVE_PATH INSTALL_PREFIX_REL2CONFIG_DIR "${CMAKE_INSTALL_PREFIX}/${CONFIG_INSTALL_DIR}" "${CMAKE_INSTALL_PREFIX}")
+set (INSTALL_PREFIX_REL2CONFIG_DIR "../..")
configure_file (cmake/config.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-config-install.cmake" @ONLY)
configure_file (cmake/version.cmake.in "${PROJECT_BINARY_DIR}/${PACKAGE_NAME}-config-version.cmake" @ONLY)