diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-03-27 11:03:23 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-03-29 00:40:22 +0200 |
commit | 3a3b3d8ba8d8f32feb7cf6c2609639635ddb53b5 (patch) | |
tree | d3d1d04f802c7335c3f8a97fdd31440ffaac282b | |
parent | 92aafebd2a02be4c40ad4beb5b28ca6889c99cb9 (diff) | |
download | mariadb-git-3a3b3d8ba8d8f32feb7cf6c2609639635ddb53b5.tar.gz |
cleanup: innodb files in cmake/
moved to storage/innobase/
also removed duplicate checks from storage/innobase/CMakeLists.txt
(they're all in storage/innobase/innodb.cmake)
-rw-r--r-- | storage/innobase/CMakeLists.txt | 27 | ||||
-rw-r--r-- | storage/innobase/bzip2.cmake (renamed from cmake/bzip2.cmake) | 0 | ||||
-rw-r--r-- | storage/innobase/innodb.cmake | 23 | ||||
-rw-r--r-- | storage/innobase/lz4.cmake (renamed from cmake/lz4.cmake) | 0 | ||||
-rw-r--r-- | storage/innobase/lzma.cmake (renamed from cmake/lzma.cmake) | 0 | ||||
-rw-r--r-- | storage/innobase/lzo.cmake (renamed from cmake/lzo.cmake) | 0 | ||||
-rw-r--r-- | storage/innobase/snappy.cmake (renamed from cmake/snappy.cmake) | 0 |
7 files changed, 17 insertions, 33 deletions
diff --git a/storage/innobase/CMakeLists.txt b/storage/innobase/CMakeLists.txt index 80d84819f08..1ecf80bb92d 100644 --- a/storage/innobase/CMakeLists.txt +++ b/storage/innobase/CMakeLists.txt @@ -16,22 +16,7 @@ # This is the CMakeLists for InnoDB -INCLUDE(CheckFunctionExists) -INCLUDE(CheckCSourceCompiles) -INCLUDE(CheckCSourceRuns) -INCLUDE(lz4) -INCLUDE(lzo) -INCLUDE(lzma) -INCLUDE(bzip2) -INCLUDE(snappy) -INCLUDE(numa) -MYSQL_CHECK_LZ4() -MYSQL_CHECK_LZO() -MYSQL_CHECK_LZMA() -MYSQL_CHECK_BZIP2() -MYSQL_CHECK_SNAPPY() -MYSQL_CHECK_NUMA() INCLUDE(innodb.cmake) @@ -185,18 +170,6 @@ IF(WITH_INNOBASE_STORAGE_ENGINE) ADD_DEPENDENCIES(innobase GenError) ENDIF() -# Avoid generating Hardware Capabilities due to crc32 instructions -IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_SYSTEM_PROCESSOR MATCHES "i386") - INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) - MY_CHECK_CXX_COMPILER_FLAG("-Wa,-nH" HAVE_WA_NH) - IF(HAVE_WA_NH) - ADD_COMPILE_FLAGS( - ut/ut0crc32.cc - COMPILE_FLAGS "-Wa,-nH" - ) - ENDIF() -ENDIF() - # A GCC bug causes crash when compiling these files on ARM64 with -O1+ # Compile them with -O0 as a workaround. IF(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64") diff --git a/cmake/bzip2.cmake b/storage/innobase/bzip2.cmake index 0c15853d0b9..0c15853d0b9 100644 --- a/cmake/bzip2.cmake +++ b/storage/innobase/bzip2.cmake diff --git a/storage/innobase/innodb.cmake b/storage/innobase/innodb.cmake index 880389edbf1..9d6ac0eb0e8 100644 --- a/storage/innobase/innodb.cmake +++ b/storage/innobase/innodb.cmake @@ -19,11 +19,11 @@ INCLUDE(CheckFunctionExists) INCLUDE(CheckCSourceCompiles) INCLUDE(CheckCSourceRuns) -INCLUDE(lz4) -INCLUDE(lzo) -INCLUDE(lzma) -INCLUDE(bzip2) -INCLUDE(snappy) +INCLUDE(lz4.cmake) +INCLUDE(lzo.cmake) +INCLUDE(lzma.cmake) +INCLUDE(bzip2.cmake) +INCLUDE(snappy.cmake) MYSQL_CHECK_LZ4() MYSQL_CHECK_LZO() @@ -240,6 +240,18 @@ IF (MSVC AND CMAKE_SIZEOF_VOID_P EQUAL 8) PROPERTIES COMPILE_FLAGS -Od) ENDIF() +# Avoid generating Hardware Capabilities due to crc32 instructions +IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_SYSTEM_PROCESSOR MATCHES "i386") + INCLUDE(${MYSQL_CMAKE_SCRIPT_DIR}/compile_flags.cmake) + MY_CHECK_CXX_COMPILER_FLAG("-Wa,-nH" HAVE_WA_NH) + IF(HAVE_WA_NH) + ADD_COMPILE_FLAGS( + ut/ut0crc32.cc + COMPILE_FLAGS "-Wa,-nH" + ) + ENDIF() +ENDIF() + IF(MSVC) # Avoid "unreferenced label" warning in generated file GET_FILENAME_COMPONENT(_SRC_DIR ${CMAKE_CURRENT_LIST_FILE} PATH) @@ -253,4 +265,3 @@ ENDIF() INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/storage/innobase/include ${CMAKE_SOURCE_DIR}/storage/innobase/handler ${CMAKE_SOURCE_DIR}/libbinlogevents/include ) - diff --git a/cmake/lz4.cmake b/storage/innobase/lz4.cmake index 075904589f0..075904589f0 100644 --- a/cmake/lz4.cmake +++ b/storage/innobase/lz4.cmake diff --git a/cmake/lzma.cmake b/storage/innobase/lzma.cmake index 12a28a17a43..12a28a17a43 100644 --- a/cmake/lzma.cmake +++ b/storage/innobase/lzma.cmake diff --git a/cmake/lzo.cmake b/storage/innobase/lzo.cmake index 07cba011c06..07cba011c06 100644 --- a/cmake/lzo.cmake +++ b/storage/innobase/lzo.cmake diff --git a/cmake/snappy.cmake b/storage/innobase/snappy.cmake index cb0839a3480..cb0839a3480 100644 --- a/cmake/snappy.cmake +++ b/storage/innobase/snappy.cmake |