aboutsummaryrefslogtreecommitdiff
path: root/ports/yaml-cpp/fix-include-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/yaml-cpp/fix-include-path.patch')
-rw-r--r--ports/yaml-cpp/fix-include-path.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/ports/yaml-cpp/fix-include-path.patch b/ports/yaml-cpp/fix-include-path.patch
new file mode 100644
index 000000000..9a7e9ff42
--- /dev/null
+++ b/ports/yaml-cpp/fix-include-path.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 4732a45..3de71cc 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -324,7 +324,7 @@ else()
+ 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)