[llvm] r223195 - [OCaml] [cmake] Disable OCaml bindings if ctypes >=0.3 is not found.
Peter Zotov
whitequark at whitequark.org
Tue Dec 2 19:39:01 PST 2014
Author: whitequark
Date: Tue Dec 2 21:39:01 2014
New Revision: 223195
URL: http://llvm.org/viewvc/llvm-project?rev=223195&view=rev
Log:
[OCaml] [cmake] Disable OCaml bindings if ctypes >=0.3 is not found.
Modified:
llvm/trunk/cmake/config-ix.cmake
Modified: llvm/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/config-ix.cmake?rev=223195&r1=223194&r2=223195&view=diff
==============================================================================
--- llvm/trunk/cmake/config-ix.cmake (original)
+++ llvm/trunk/cmake/config-ix.cmake Tue Dec 2 21:39:01 2014
@@ -529,10 +529,14 @@ else()
if( OCAML_VERSION VERSION_LESS "4.00.0" )
message(STATUS "OCaml bindings disabled, need OCaml >=4.00.0.")
else()
- message(STATUS "OCaml bindings enabled.")
- find_ocamlfind_package(ctypes VERSION 0.3)
- find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
- set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml")
+ find_ocamlfind_package(ctypes VERSION 0.3 OPTIONAL)
+ if( HAVE_OCAML_CTYPES )
+ message(STATUS "OCaml bindings enabled.")
+ find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
+ set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml")
+ else()
+ message(STATUS "OCaml bindings disabled, need ctypes >=0.3.")
+ endif()
endif()
endif()
endif()
More information about the llvm-commits
mailing list