diff options
-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}") |