[PATCH] D119079: [llvm] [cmake] Fix finding modern ounit2
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 12 04:45:40 PST 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG919dba9248f6: [llvm] [cmake] Fix finding modern ounit2 (authored by mgorny).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119079/new/
https://reviews.llvm.org/D119079
Files:
llvm/cmake/config-ix.cmake
Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -650,7 +650,12 @@
find_ocamlfind_package(ctypes VERSION 0.4 OPTIONAL)
if( HAVE_OCAML_CTYPES )
message(STATUS "OCaml bindings enabled.")
- find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
+ find_ocamlfind_package(ounit2 OPTIONAL)
+ if ( HAVE_OCAML_OUNIT2 )
+ set(HAVE_OCAML_OUNIT TRUE)
+ else()
+ find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
+ endif()
set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml")
set(LLVM_OCAML_INSTALL_PATH "${OCAML_STDLIB_PATH}" CACHE STRING
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119079.408175.patch
Type: text/x-patch
Size: 726 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220212/8a882c0c/attachment.bin>
More information about the llvm-commits
mailing list