Commit 00464252 authored by Sergei Golubchik's avatar Sergei Golubchik

Fix "cmake . && cmake -DWITHOUT_TOKUDB=1" to disable tokudb

parent 74feebcd
# ft-index only supports x86-64 and cmake-2.8.9+ # ft-index only supports x86-64 and cmake-2.8.9+
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND
NOT CMAKE_VERSION VERSION_LESS "2.8.9" AND NOT CMAKE_VERSION VERSION_LESS "2.8.9")
NOT WITHOUT_TOKUDB AND NOT WITHOUT_TOKUDB_STORAGE_ENGINE)
CHECK_CXX_SOURCE_COMPILES( CHECK_CXX_SOURCE_COMPILES(
" "
struct a {int b; int c; }; struct a {int b; int c; };
...@@ -10,7 +9,7 @@ int main() { return 0; } ...@@ -10,7 +9,7 @@ int main() { return 0; }
" TOKUDB_OK) " TOKUDB_OK)
ENDIF() ENDIF()
IF(NOT TOKUDB_OK) IF(NOT TOKUDB_OK OR WITHOUT_TOKUDB OR WITHOUT_TOKUDB_STORAGE_ENGINE)
RETURN() RETURN()
ENDIF() ENDIF()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment