--- extra/CMakeLists.txt.orig	2017-04-04 19:11:33 UTC
+++ extra/CMakeLists.txt
@@ -46,6 +46,7 @@ ADD_CUSTOM_TARGET(GenError
                   DEPENDS 
                   ${CMAKE_BINARY_DIR}/include/mysqld_error.h.tmp)
 
+IF(FALSE)
 MYSQL_ADD_EXECUTABLE(my_print_defaults my_print_defaults.c)
 TARGET_LINK_LIBRARIES(my_print_defaults  mysys)
 
@@ -84,15 +85,19 @@ IF(WITH_INNOBASE_STORAGE_ENGINE OR WITH_
       )
 
 
+IF(NOT WITHOUT_SERVER)
   MYSQL_ADD_EXECUTABLE(innochecksum innochecksum.cc ${INNOBASE_SOURCES})
   TARGET_LINK_LIBRARIES(innochecksum mysys mysys_ssl)
   ADD_DEPENDENCIES(innochecksum GenError)
 ENDIF()
+ENDIF()
 
 MYSQL_ADD_EXECUTABLE(replace replace.c COMPONENT Server)
 TARGET_LINK_LIBRARIES(replace mysys)
+ENDIF()
 
 IF(UNIX)
+IF(NOT WITHOUT_SERVER)
   MYSQL_ADD_EXECUTABLE(resolve_stack_dump resolve_stack_dump.c)
   TARGET_LINK_LIBRARIES(resolve_stack_dump mysys)
 
@@ -102,3 +107,4 @@ IF(UNIX)
   MYSQL_ADD_EXECUTABLE(mysqld_safe_helper mysqld_safe_helper.c COMPONENT Server)
   TARGET_LINK_LIBRARIES(mysqld_safe_helper mysys)
 ENDIF()
+ENDIF()
