]>
Commit | Line | Data |
---|---|---|
d706a70d JB |
1 | --- llvm-3.8.1.src/cmake/modules/AddOCaml.cmake.orig 2016-10-11 22:03:29.695199936 +0200 |
2 | +++ llvm-3.8.1.src/cmake/modules/AddOCaml.cmake 2016-10-12 20:14:25.327621462 +0200 | |
3 | @@ -37,11 +37,13 @@ | |
4 | ||
5 | set(ocaml_inputs) | |
6 | ||
7 | + option(OCAML_BUILD_SHARED_LIBS "Build ocaml shared libraries" ON) | |
8 | + | |
9 | set(ocaml_outputs "${bin}/${name}.cma") | |
10 | if( ARG_C ) | |
11 | list(APPEND ocaml_outputs | |
12 | "${bin}/lib${name}${CMAKE_STATIC_LIBRARY_SUFFIX}") | |
13 | - if ( BUILD_SHARED_LIBS ) | |
14 | + if ( OCAML_BUILD_SHARED_LIBS ) | |
15 | list(APPEND ocaml_outputs | |
16 | "${bin}/dll${name}${CMAKE_SHARED_LIBRARY_SUFFIX}") | |
17 | endif() | |
18 | @@ -62,7 +64,7 @@ | |
19 | list(APPEND ocaml_flags ${dep_ocaml_flags}) | |
20 | endforeach() | |
21 | ||
22 | - if( NOT BUILD_SHARED_LIBS ) | |
23 | + if( NOT OCAML_BUILD_SHARED_LIBS ) | |
24 | list(APPEND ocaml_flags "-custom") | |
25 | endif() | |
26 |