Skip to content

Commit 1236333

Browse files
committed
Fix annoying repetitive tokudb build warning, if MariaDB is build on non-Linux x64 system
1 parent 8fcc0bf commit 1236333

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

storage/tokudb/CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ struct a d = { .b=1, .c=2 };
99
int main() { return 0; }
1010
" TOKUDB_OK)
1111
ELSE()
12-
IF(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64")
13-
MESSAGE(WARNING "Not Intel 64 bit CPU")
14-
ELSE()
15-
MESSAGE(WARNING "Too old CMAKE VERSION. 2.8.9 or higher is required by TokuDB")
12+
IF(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" AND
13+
CMAKE_VERSION VERSION_LESS "2.8.9")
14+
MESSAGE(STATUS "CMake 2.8.9 or higher is required by TokuDB")
1615
ENDIF()
1716
ENDIF()
1817

0 commit comments

Comments
 (0)