aboutsummaryrefslogtreecommitdiff
path: root/ports/hiredis/fix-include-path.patch
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-03-11 04:01:27 +0800
committerGitHub <noreply@github.com>2021-03-10 14:01:27 -0600
commitd3c432d955df8768f9c3b88f2fb96dd10644a305 (patch)
treec65552f6e688a72f594372732e84dab97e7ce729 /ports/hiredis/fix-include-path.patch
parentc3c77073f8716121521a38a60be700824f5a9939 (diff)
downloadvcpkg-d3c432d955df8768f9c3b88f2fb96dd10644a305.tar.gz
vcpkg-d3c432d955df8768f9c3b88f2fb96dd10644a305.zip
[hiredis] Fix include path (#16512)
* [hiredis] Fix include path * Update versions * Update ports/hiredis/vcpkg.json * Update versions/h-/hiredis.json Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
Diffstat (limited to 'ports/hiredis/fix-include-path.patch')
-rw-r--r--ports/hiredis/fix-include-path.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/hiredis/fix-include-path.patch b/ports/hiredis/fix-include-path.patch
new file mode 100644
index 000000000..8bfeae09d
--- /dev/null
+++ b/ports/hiredis/fix-include-path.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 7eafeb8..623c586 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -49,7 +49,7 @@ IF(WIN32 OR MINGW)
+ TARGET_LINK_LIBRARIES(hiredis PRIVATE ws2_32)
+ ENDIF()
+
+-TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:.> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
++TARGET_INCLUDE_DIRECTORIES(hiredis PUBLIC $<INSTALL_INTERFACE:include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
+
+ CONFIGURE_FILE(hiredis.pc.in hiredis.pc @ONLY)
+