MINGW-packages/mingw-w64-nghttp2/001-fix-pc-prefix.patch
Christoph Reiter 8911112a40 nghttp2: port to cmake
DLL name change, so needs rebuilds
Also remove libraries that weren't used while at it.
2022-10-29 13:43:36 +02:00

16 lines
756 B
Diff

--- nghttp2-1.50.0/CMakeLists.txt.orig 2022-10-29 12:52:40 +0000
+++ nghttp2-1.50.0/CMakeLists.txt 2022-10-29 12:52:25 +0000
@@ -457,9 +457,9 @@
set(abs_top_builddir "${CMAKE_CURRENT_BINARY_DIR}")
# libnghttp2.pc (pkg-config file)
set(prefix "${CMAKE_INSTALL_PREFIX}")
-set(exec_prefix "${CMAKE_INSTALL_PREFIX}")
-set(libdir "${CMAKE_INSTALL_FULL_LIBDIR}")
-set(includedir "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
+set(exec_prefix "\${prefix}")
+set(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
+set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
set(VERSION "${PACKAGE_VERSION}")
# For init scripts and systemd service file (in contrib/)
set(bindir "${CMAKE_INSTALL_FULL_BINDIR}")