List:Commits« Previous MessageNext Message »
From:Magnus Blåudd Date:March 28 2011 8:11am
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4259)
View as plain text  
#At file:///home/msvensson/mysql/7.0/ based on revid:magnus.blaudd@stripped

 4259 Magnus Blåudd	2011-03-28
      ndb cmake
       - only set the  debug compiler defines same as MySQL Server in 5.1 versions

    modified:
      storage/ndb/CMakeLists.txt
=== modified file 'storage/ndb/CMakeLists.txt'
--- a/storage/ndb/CMakeLists.txt	2011-03-28 08:03:41 +0000
+++ b/storage/ndb/CMakeLists.txt	2011-03-28 08:11:37 +0000
@@ -23,11 +23,14 @@ SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT
 STRING(REPLACE "-Werror" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
 STRING(REPLACE "-Werror" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
 
-# Use same compiler defines as MySQL Server for debug compile
-SET(CMAKE_CXX_FLAGS_DEBUG
-    "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
-SET(CMAKE_C_FLAGS_DEBUG
-    "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
+IF (MYSQL_VERSION_ID LESS 50500)
+  # Use same compiler defines as MySQL Server for debug compile
+  MESSAGE(STATUS "Setting same debug compile defines")
+  SET(CMAKE_CXX_FLAGS_DEBUG
+      "${CMAKE_CXX_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
+  SET(CMAKE_C_FLAGS_DEBUG
+      "${CMAKE_C_FLAGS_DEBUG} -DSAFEMALLOC -DSAFE_MUTEX")
+ENDIF()
 
 IF(SOURCE_SUBLIBS)
   # Sourced by libmysqld/CMakeLists.txt in 5.1 only to get

Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110328081137-xtghc0c8gal5g14t.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4259) Magnus Blåudd28 Mar