• Sergei Golubchik's avatar
    cmake fixes for tokudb · 00686e6d
    Sergei Golubchik authored
    cmake/jemalloc.cmake:
      for dependencies to work, LIBJEMALLOC should be the target name, not the path
    storage/tokudb/CMakeLists.txt:
      * check the preconditions
      * disable bdb tests (compilation errors)
      * set variable, instead of SET_PROPERTY. same effect,
        but doesn't fail when a plugin is disabled (that is, a target does not exist)
    storage/tokudb/ft-index/CMakeLists.txt:
      cmake should not look into examples/ directory,
      there is hand-crafted examples/Makefile that
      cmake will overwrite
    storage/tokudb/ft-index/buildheader/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/cmake_modules/TokuMergeLibs.cmake:
      Libraries must be specified in the specific order,
      REMOVE_DUPLICATES cannot be used, because it destroys this order.
      
      (when OSLIBS contains "-lpthread -ljemalloc -lpthread", REMOVE_DUPLICATES
      makes it "-lpthread -ljemalloc". But a thread library *must* be *after* jemalloc)
    storage/tokudb/ft-index/cmake_modules/TokuSetupCTest.cmake:
      * 'which' might print errors to stderr, they are not important, shut them up
      * we don't have TOKUDB_DATA, no need to warn about it
      * don't configure_file into itself (with input=output)
    storage/tokudb/ft-index/cmake_modules/TokuThirdParty.cmake:
      jemalloc is built externally to tokudb/ft-index
    storage/tokudb/ft-index/ft/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/ft/tests/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/locktree/tests/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/portability/CMakeLists.txt:
      s/jemalloc/libjemalloc/
    storage/tokudb/ft-index/portability/os_malloc.cc:
      unnecessary include file
    storage/tokudb/ft-index/portability/tests/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/src/tests/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/util/tests/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    storage/tokudb/ft-index/utils/CMakeLists.txt:
      the syntax is ADD_EXECUTABLE(target source) and "source" is the file name
    00686e6d
CMakeLists.txt 5.52 KB