vcpkg/ports/gherkin-c/fix-include-path.patch
Jack·Boos·Yu 956fae3977
[gherkin-c] Fix UNIX build, fix install path (#22578)
* [gherkin-c] Fix UNIX build, fix install path

* version

* manifest

* version

* should be a `-` not an `_`

Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2022-01-18 13:26:14 -08:00

23 lines
822 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 74b9ffb..6af4645 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,7 +60,7 @@ LIST(APPEND GHERKIN_SRS
)
add_library(gherkin ${GHERKIN_SRS})
-target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>")
+target_include_directories(gherkin PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include;${CMAKE_CURRENT_SOURCE_DIR}/src>" "$<INSTALL_INTERFACE:include/gherkin-c>")
if (BUILD_GHERKIN_TESTS)
LIST(APPEND GENERATE_TOKEN
@@ -96,7 +96,7 @@ if (BUILD_GHERKIN_TESTS)
ENDFOREACH()
endif()
-set(include_install_dir "include")
+set(include_install_dir "include/gherkin-c")
set(lib_install_dir "lib/")
set(bin_install_dir "bin/")
set(config_install_dir "lib/cmake/")