mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 16:33:28 +00:00
[OCaml] [cmake] Disable OCaml bindings if ctypes >=0.3 is not found.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5097660f86
commit
0245b12df2
@ -529,10 +529,14 @@ else()
|
|||||||
if( OCAML_VERSION VERSION_LESS "4.00.0" )
|
if( OCAML_VERSION VERSION_LESS "4.00.0" )
|
||||||
message(STATUS "OCaml bindings disabled, need OCaml >=4.00.0.")
|
message(STATUS "OCaml bindings disabled, need OCaml >=4.00.0.")
|
||||||
else()
|
else()
|
||||||
message(STATUS "OCaml bindings enabled.")
|
find_ocamlfind_package(ctypes VERSION 0.3 OPTIONAL)
|
||||||
find_ocamlfind_package(ctypes VERSION 0.3)
|
if( HAVE_OCAML_CTYPES )
|
||||||
find_ocamlfind_package(oUnit VERSION 2 OPTIONAL)
|
message(STATUS "OCaml bindings enabled.")
|
||||||
set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml")
|
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()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user