llvm.org GIT mirror llvm / a2cb627
[OCaml] [cmake] Use LLVM_LIBRARY_DIR instead of LLVM_LIBRARY_OUTPUT_INTDIR. The latter variable is internal. Original patch by Ramkumar Ramachandra <artagnon@gmail.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224977 91177308-0d34-0410-b5e6-96231b3b80d8 Peter Zotov 4 years ago
3 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
1919
2020 configure_file(
2121 "${CMAKE_CURRENT_SOURCE_DIR}/META.llvm_backend.in"
22 "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/META.llvm_${TARGET}")
22 "${LLVM_LIBRARY_DIR}/ocaml/META.llvm_${TARGET}")
2323
24 install(FILES "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/META.llvm_${TARGET}"
24 install(FILES "${LLVM_LIBRARY_DIR}/ocaml/META.llvm_${TARGET}"
2525 DESTINATION lib/ocaml)
2626 endforeach()
44
55 configure_file(
66 "${CMAKE_CURRENT_SOURCE_DIR}/META.llvm.in"
7 "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/META.llvm")
7 "${LLVM_LIBRARY_DIR}/ocaml/META.llvm")
88
9 install(FILES "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/META.llvm"
9 install(FILES "${LLVM_LIBRARY_DIR}/ocaml/META.llvm"
1010 DESTINATION lib/ocaml)
5151 "${bin}/${name}${CMAKE_STATIC_LIBRARY_SUFFIX}")
5252 endif()
5353
54 set(ocaml_flags "-lstdc++" "-ldopt" "-L${LLVM_LIBRARY_OUTPUT_INTDIR}"
54 set(ocaml_flags "-lstdc++" "-ldopt" "-L${LLVM_LIBRARY_DIR}"
5555 ${ocaml_pkgs})
5656
5757 foreach( ocaml_dep ${ARG_OCAMLDEP} )
143143 OUTPUT "${bin}/${name}.odoc"
144144 COMMAND "${OCAMLFIND}" "ocamldoc"
145145 "-I" "${bin}"
146 "-I" "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/"
146 "-I" "${LLVM_LIBRARY_DIR}/ocaml/"
147147 "-dump" "${bin}/${name}.odoc"
148148 ${ocaml_pkgs} ${ocaml_inputs}
149149 DEPENDS ${ocaml_inputs}
191191 get_filename_component(filename "${install_file}" NAME)
192192 add_custom_command(TARGET "ocaml_${name}" POST_BUILD
193193 COMMAND "${CMAKE_COMMAND}" "-E" "copy" "${install_file}"
194 "${LLVM_LIBRARY_OUTPUT_INTDIR}/ocaml/"
194 "${LLVM_LIBRARY_DIR}/ocaml/"
195195 COMMENT "Copying OCaml library component ${filename} to intermediate area"
196196 VERBATIM)
197197 endforeach()