[PATCH] D24354: cmake: Install the OCaml libraries into a more correct path
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 11:10:34 PDT 2016
mgorny retitled this revision from "cmake: Use system-obtained OCaml library path when installing" to "cmake: Install the OCaml libraries into a more correct path".
mgorny updated the summary for this revision.
mgorny updated this revision to Diff 70729.
https://reviews.llvm.org/D24354
Files:
cmake/modules/AddOCaml.cmake
Index: cmake/modules/AddOCaml.cmake
===================================================================
--- cmake/modules/AddOCaml.cmake
+++ cmake/modules/AddOCaml.cmake
@@ -192,13 +192,16 @@
endif()
endforeach()
+ set(OCAML_INSTALL_PATH "${OCAML_STDLIB_PATH}/llvm"
+ CACHE STRING "Install directory for LLVM Ocaml libraries")
+
install(FILES ${install_files}
- DESTINATION lib/ocaml)
+ DESTINATION "${OCAML_INSTALL_PATH}")
install(FILES ${install_shlibs}
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE
GROUP_READ GROUP_EXECUTE
WORLD_READ WORLD_EXECUTE
- DESTINATION lib/ocaml)
+ DESTINATION "${OCAML_INSTALL_PATH}")
foreach( install_file ${install_files} ${install_shlibs} )
get_filename_component(filename "${install_file}" NAME)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24354.70729.patch
Type: text/x-patch
Size: 859 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160908/9a6aab8d/attachment.bin>
More information about the llvm-commits
mailing list