diff -aurN a/storage/ndb/CMakeLists.txt b/storage/ndb/CMakeLists.txt --- a/storage/ndb/CMakeLists.txt 2015-02-10 12:21:44.502545905 -0500 +++ b/storage/ndb/CMakeLists.txt 2015-02-10 12:30:53.985233768 -0500 @@ -145,7 +145,9 @@ # Add HAVE_NDB_BINLOG to the list of compile definitions used when compiling # the ndbcluster plugin library(NOTE! there is also ndbcluster_embedded which # is compiled without this define) -NDB_ADD_TARGET_PROPERTY(ndbcluster COMPILE_DEFINITIONS "HAVE_NDB_BINLOG") +IF(NOT WITHOUT_SERVER) + NDB_ADD_TARGET_PROPERTY(ndbcluster COMPILE_DEFINITIONS "HAVE_NDB_BINLOG") +ENDIF() IF(CMAKE_SIZEOF_VOID_P EQUAL 4) MESSAGE(STATUS "Building NDB 32-bit")