|
Line
Link Here
|
| 0 |
-- src/llvm/cmake/config-ix.cmake 2017-12-14 22:25:15.988551420 +0100 |
0 |
++ src/llvm/cmake/config-ix.cmake.no_llvm_ocaml_bindings 2017-12-14 22:35:08.087110357 +0100 |
|
Lines 564-592
Link Here
|
| 564 |
# Keep the version requirements in sync with bindings/ocaml/README.txt. |
564 |
# Keep the version requirements in sync with bindings/ocaml/README.txt. |
| 565 |
include(FindOCaml) |
565 |
include(FindOCaml) |
| 566 |
include(AddOCaml) |
566 |
include(AddOCaml) |
| 567 |
if(WIN32) |
567 |
message(STATUS "OCaml bindings disabled.") |
| 568 |
message(STATUS "OCaml bindings disabled.") |
|
|
| 569 |
else() |
| 570 |
find_package(OCaml) |
| 571 |
if( NOT OCAML_FOUND ) |
| 572 |
message(STATUS "OCaml bindings disabled.") |
| 573 |
else() |
| 574 |
if( OCAML_VERSION VERSION_LESS "4.00.0" ) |
| 575 |
message(STATUS "OCaml bindings disabled, need OCaml >=4.00.0.") |
| 576 |
else() |
| 577 |
find_ocamlfind_package(ctypes VERSION 0.4 OPTIONAL) |
| 578 |
if( HAVE_OCAML_CTYPES ) |
| 579 |
message(STATUS "OCaml bindings enabled.") |
| 580 |
find_ocamlfind_package(oUnit VERSION 2 OPTIONAL) |
| 581 |
set(LLVM_BINDINGS "${LLVM_BINDINGS} ocaml") |
| 582 |
|
| 583 |
set(LLVM_OCAML_INSTALL_PATH "${OCAML_STDLIB_PATH}" CACHE STRING |
| 584 |
"Install directory for LLVM OCaml packages") |
| 585 |
else() |
| 586 |
message(STATUS "OCaml bindings disabled, need ctypes >=0.4.") |
| 587 |
endif() |
| 588 |
endif() |
| 589 |
endif() |
| 590 |
endif() |
| 591 |
string(REPLACE " " ";" LLVM_BINDINGS_LIST "${LLVM_BINDINGS}") |
568 |
string(REPLACE " " ";" LLVM_BINDINGS_LIST "${LLVM_BINDINGS}") |