diff options
author | Sergei Golubchik <sergii@pisem.net> | 2014-07-25 14:15:33 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2014-07-25 14:15:33 +0200 |
commit | be667b8c42f9d67f61409be594603d73f007d405 (patch) | |
tree | 57730dcf5de83fe49c3dfce14d585b953c5e2277 /sql/CMakeLists.txt | |
parent | 44aacfc5c36453b6ca2a22f4795f774f579f058c (diff) | |
download | mariadb-git-be667b8c42f9d67f61409be594603d73f007d405.tar.gz |
MDEV-5706 MariaDB does not build on hurd-i386
backport from 10.0 the fix for:
MDEV-5756 CMake option to build without thread pool
Diffstat (limited to 'sql/CMakeLists.txt')
-rw-r--r-- | sql/CMakeLists.txt | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/CMakeLists.txt b/sql/CMakeLists.txt index 376f9773ab2..22cc9ac4be7 100644 --- a/sql/CMakeLists.txt +++ b/sql/CMakeLists.txt @@ -30,7 +30,15 @@ ${CMAKE_CURRENT_BINARY_DIR}/lex_hash.h SET_SOURCE_FILES_PROPERTIES(${GEN_SOURCES} PROPERTIES GENERATED 1) -ADD_DEFINITIONS(-DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS) +ADD_DEFINITIONS(-DMYSQL_SERVER -DHAVE_EVENT_SCHEDULER) + +IF (CMAKE_SYSTEM_NAME MATCHES "Linux" OR + CMAKE_SYSTEM_NAME MATCHES "Windows" OR + CMAKE_SYSTEM_NAME MATCHES "SunOS" OR + HAVE_KQUEUE) + ADD_DEFINITIONS(-DHAVE_POOL_OF_THREADS) +ENDIF() + IF(SSL_DEFINES) ADD_DEFINITIONS(${SSL_DEFINES}) ENDIF() |