|
From: <ai...@us...> - 2008-10-11 01:50:17
|
Revision: 8880
http://plplot.svn.sourceforge.net/plplot/?rev=8880&view=rev
Author: airwin
Date: 2008-10-11 01:50:08 +0000 (Sat, 11 Oct 2008)
Log Message:
-----------
Turn off OCaml bindings and examples for the static library case.
Modified Paths:
--------------
trunk/cmake/modules/ocaml.cmake
Modified: trunk/cmake/modules/ocaml.cmake
===================================================================
--- trunk/cmake/modules/ocaml.cmake 2008-10-10 21:47:29 UTC (rev 8879)
+++ trunk/cmake/modules/ocaml.cmake 2008-10-11 01:50:08 UTC (rev 8880)
@@ -25,6 +25,12 @@
option(ENABLE_ocaml "Enable OCaml bindings" ON)
endif(DEFAULT_NO_BINDINGS)
+if(ENABLE_ocaml AND NOT BUILD_SHARED_LIBS)
+ message(STATUS "WARNING: "
+ "OCaml requires shared libraries. Disabling ocaml bindings")
+ set(ENABLE_ocaml OFF CACHE BOOL "Enable OCaml bindings" FORCE)
+endif(ENABLE_ocaml AND NOT BUILD_SHARED_LIBS)
+
if(ENABLE_ocaml)
find_program(OCAMLBUILD ocamlbuild)
if (OCAMLBUILD)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|