List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:June 16 2011 9:33am
Subject:bzr commit into mysql-5.1-telco-7.1 branch (magnus.blaudd:4244)
View as plain text  
#At file:///C:/mysql/7.1/ based on revid:magnus.blaudd@oracle.com-20110615124914-utiipjfh440vigan

 4244 Magnus Blåudd	2011-06-16
      ndb
       - fix problem with compiling 7.1 on machine without Java

    modified:
      storage/ndb/CMakeLists.txt
      storage/ndb/clusterj/CMakeLists.txt
      storage/ndb/src/CMakeLists.txt
=== modified file 'storage/ndb/CMakeLists.txt'
--- a/storage/ndb/CMakeLists.txt	2011-05-23 14:15:59 +0000
+++ b/storage/ndb/CMakeLists.txt	2011-06-16 09:33:27 +0000
@@ -159,7 +159,9 @@ ELSE()
   IF(WITH_NDB_TEST)
     ADD_SUBDIRECTORY(src/cw/cpcd)
   ENDIF()
-  ADD_SUBDIRECTORY(clusterj)
+  IF (HAVE_JDK)
+    ADD_SUBDIRECTORY(clusterj)
+  ENDIF()
 
 ENDIF()
 

=== modified file 'storage/ndb/clusterj/CMakeLists.txt'
--- a/storage/ndb/clusterj/CMakeLists.txt	2011-04-06 16:02:16 +0000
+++ b/storage/ndb/clusterj/CMakeLists.txt	2011-06-16 09:33:27 +0000
@@ -13,10 +13,6 @@
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
-IF(!HAVE_JDK)
-  RETURN()
-ENDIF()
-
 MESSAGE(STATUS "including ClusterJ")
 
 IF("${WITH_CLASSPATH}" MATCHES "junit-(.+).jar")

=== modified file 'storage/ndb/src/CMakeLists.txt'
--- a/storage/ndb/src/CMakeLists.txt	2011-02-02 09:20:32 +0000
+++ b/storage/ndb/src/CMakeLists.txt	2011-06-16 09:33:27 +0000
@@ -21,7 +21,6 @@ ADD_SUBDIRECTORY(ndbapi)
 ADD_SUBDIRECTORY(kernel)
 ADD_SUBDIRECTORY(mgmclient)
 ADD_SUBDIRECTORY(mgmsrv)
-ADD_SUBDIRECTORY(ndbjtie)
 
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/storage/ndb/include
                     ${CMAKE_SOURCE_DIR}/include)
@@ -41,6 +40,8 @@ SET(NDBCLIENT_LIBS
 
 IF(HAVE_JDK AND HAVE_JAVA)
 
+  ADD_SUBDIRECTORY(ndbjtie)
+
   SET(NDBCLIENT_LIBS ${NDBCLIENT_LIBS} mysqlutils ndbjtie)
 
   INCLUDE_DIRECTORIES(${JNI_INCLUDE_DIRS})

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@sun.com-20110616093327-ziiq8k58edpda82m.bundle
Thread
bzr commit into mysql-5.1-telco-7.1 branch (magnus.blaudd:4244) Magnus Blåudd16 Jun