diff options
author | Michal Gorny <mgorny@gentoo.org> | 2016-10-01 09:26:23 +0000 |
---|---|---|
committer | Michal Gorny <mgorny@gentoo.org> | 2016-10-01 09:26:23 +0000 |
commit | 0b515d464cc9bfdb389947566923832b1d029605 (patch) | |
tree | e9e421b309ed09872d21b8bda424cf6722b9d77f /llvm/cmake/modules/AddOCaml.cmake | |
parent | b811fed0eeac1abba95d120b6065c297ea4083e5 (diff) | |
download | bcm5719-llvm-0b515d464cc9bfdb389947566923832b1d029605.tar.gz bcm5719-llvm-0b515d464cc9bfdb389947566923832b1d029605.zip |
[OCaml] Install .mli (interface) files
Install the OCaml interface .mli files. Those files were most likely
omitted because they are input files for the compiled .cmi files.
However, installing them is reasonable since -- unlike .cmi files --
they are human-readable.
The issue was originally spotted by @jpdeplaix.
Differential Revision: https://reviews.llvm.org/D25128
llvm-svn: 283028
Diffstat (limited to 'llvm/cmake/modules/AddOCaml.cmake')
-rw-r--r-- | llvm/cmake/modules/AddOCaml.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddOCaml.cmake b/llvm/cmake/modules/AddOCaml.cmake index 013c4fc3297..1b805c0710a 100644 --- a/llvm/cmake/modules/AddOCaml.cmake +++ b/llvm/cmake/modules/AddOCaml.cmake @@ -180,10 +180,11 @@ function(add_ocaml_library name) set(install_files) set(install_shlibs) - foreach( ocaml_output ${ocaml_outputs} ) + foreach( ocaml_output ${ocaml_inputs} ${ocaml_outputs} ) get_filename_component(ext "${ocaml_output}" EXT) if( NOT (ext STREQUAL ".cmo" OR + ext STREQUAL ".ml" OR ext STREQUAL CMAKE_C_OUTPUT_EXTENSION OR ext STREQUAL CMAKE_SHARED_LIBRARY_SUFFIX) ) list(APPEND install_files "${ocaml_output}") |