windows-amd64-prebuilt-libr.../vcpkg/ports/halide/fix-install-path.patch
2020-10-10 14:36:42 +02:00

36 lines
1.0 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 577b61ed2..7c6dd8ac4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -432,7 +432,7 @@ install(FILES
DESTINATION include)
install(DIRECTORY tutorial
- DESTINATION .
+ DESTINATION share/halide
FILES_MATCHING
PATTERN "*.cpp"
PATTERN "*.h"
@@ -463,10 +463,10 @@ install(FILES
README.md
README_rungen.md
README_webassembly.md
- DESTINATION .)
+ DESTINATION share/halide)
# ---- halide.cmake
-install(FILES halide.cmake DESTINATION .)
+install(FILES halide.cmake DESTINATION share/halide)
# ---- halide_config
file(GLOB FILES "${Halide_SOURCE_DIR}/tools/halide_config.*.tpl")
@@ -475,7 +475,7 @@ foreach(F ${FILES})
string(REGEX REPLACE "\\.tpl$" "" FNAME "${FNAME}") # Strip .tpl extension
configure_file("${F}" "${CMAKE_BINARY_DIR}/${FNAME}" @ONLY)
install(FILES "${CMAKE_BINARY_DIR}/${FNAME}"
- DESTINATION .)
+ DESTINATION share/halide)
endforeach()
add_custom_target(distrib