diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-08-28 05:47:32 +0800 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-08-27 14:47:32 -0700 |
| commit | e64f2a493ac96b649487d387c6e2af7d9f95efe7 (patch) | |
| tree | 3d982afbd75f5696464c288b08e0da7b6fc06117 /ports/yaml-cpp/0002-fix-include-path.patch | |
| parent | 55063d6405cb36d42b2bb76a1d7c09dbf65069fb (diff) | |
| download | vcpkg-e64f2a493ac96b649487d387c6e2af7d9f95efe7.tar.gz vcpkg-e64f2a493ac96b649487d387c6e2af7d9f95efe7.zip | |
[yaml-cpp]Fix include path in yaml-cpp-config.cmake (#7847)
* [yaml-cpp]Fix include path in yaml-cpp-config.cmake
* [yaml-cpp]Remove useless code.
Diffstat (limited to 'ports/yaml-cpp/0002-fix-include-path.patch')
| -rw-r--r-- | ports/yaml-cpp/0002-fix-include-path.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/yaml-cpp/0002-fix-include-path.patch b/ports/yaml-cpp/0002-fix-include-path.patch new file mode 100644 index 000000000..78c260831 --- /dev/null +++ b/ports/yaml-cpp/0002-fix-include-path.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d2d8810..c4d4be1 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -326,7 +326,7 @@ else() + set(INSTALL_CMAKE_DIR ${LIB_INSTALL_DIR}/cmake/yaml-cpp) + endif() + +-file(RELATIVE_PATH REL_INCLUDE_DIR "${CMAKE_INSTALL_PREFIX}/${INSTALL_CMAKE_DIR}" "${CMAKE_INSTALL_PREFIX}/${INCLUDE_INSTALL_ROOT_DIR}") ++set(REL_INCLUDE_DIR "../../include") + set(CONFIG_INCLUDE_DIRS "\${YAML_CPP_CMAKE_DIR}/${REL_INCLUDE_DIR}") + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yaml-cpp-config.cmake.in + "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/yaml-cpp-config.cmake" @ONLY) |
