Skip to content

Commit

Permalink
small refactoring o innobase/CMakeLists.txt
Browse files Browse the repository at this point in the history
allow to build with -DPLUGIN_INNOBASE=NO
  • Loading branch information
vaintroub committed Aug 30, 2017
1 parent 9182697 commit 49f3fb8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions storage/innobase/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,7 @@ SET(INNOBASE_SOURCES
ut/ut0wqueue.cc
ut/ut0timer.cc)

IF(WITH_INNODB)
# Legacy option
SET(WITH_INNOBASE_STORAGE_ENGINE TRUE)
ENDIF()

MYSQL_ADD_PLUGIN(innobase ${INNOBASE_SOURCES} STORAGE_ENGINE
# MODULE_ONLY
# MODULE_OUTPUT_NAME ha_innodb
DEFAULT RECOMPILE_FOR_EMBEDDED
LINK_LIBRARIES
${ZLIB_LIBRARY}
Expand All @@ -166,8 +159,8 @@ MYSQL_ADD_PLUGIN(innobase ${INNOBASE_SOURCES} STORAGE_ENGINE
${LIBSYSTEMD}
${LINKER_SCRIPT})

IF(WITH_INNOBASE_STORAGE_ENGINE)
ADD_DEPENDENCIES(innobase GenError)
IF(NOT TARGET innobase)
RETURN()
ENDIF()

# A GCC bug causes crash when compiling these files on ARM64 with -O1+
Expand Down

0 comments on commit 49f3fb8

Please sign in to comment.