summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2018-01-07 11:45:13 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2018-01-07 11:45:13 +0000
commit7349b9ab5eda351737f9d63c445df0ade6dcbf9e (patch)
tree7128824e520e1ecd26da422e34a90a20c961139a
parenta603b4659360cf43919d1dfa3e9bc68b93911cb6 (diff)
downloadmariadb-git-7349b9ab5eda351737f9d63c445df0ade6dcbf9e.tar.gz
MDEV-14881 cmake should succeed after installing libaio.
In case libaio is not found, and required, remove variables HAVE_LIBAIO_H and HAVE_LIBAIO from cache, so that cmake rerun after installation of libaio would succeed.
-rw-r--r--cmake/build_configurations/mysql_release.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/build_configurations/mysql_release.cmake b/cmake/build_configurations/mysql_release.cmake
index 258db0b5a05..247cd4110e0 100644
--- a/cmake/build_configurations/mysql_release.cmake
+++ b/cmake/build_configurations/mysql_release.cmake
@@ -128,6 +128,8 @@ IF(UNIX)
CHECK_INCLUDE_FILES(libaio.h HAVE_LIBAIO_H)
CHECK_LIBRARY_EXISTS(aio io_queue_init "" HAVE_LIBAIO)
IF(NOT HAVE_LIBAIO_H OR NOT HAVE_LIBAIO)
+ UNSET(HAVE_LIBAIO_H CACHE)
+ UNSET(HAVE_LIBAIO CACHE)
MESSAGE(FATAL_ERROR "
aio is required on Linux, you need to install the required library: