diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-07-12 09:48:59 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-07-26 14:42:32 +0200 |
commit | 0ee5cf837e3a0464acc20db2a2aee0adaff3f2ac (patch) | |
tree | ab4123072b3b0ad3f6b004f6234834702f3515a3 /plugin | |
parent | 15a68fc255b3eb78a2678a2aee4123dea5911a54 (diff) | |
download | mariadb-git-0ee5cf837e3a0464acc20db2a2aee0adaff3f2ac.tar.gz |
disks plugin: check for build prerequisites properly
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/disks/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/disks/CMakeLists.txt b/plugin/disks/CMakeLists.txt index 446c64d0fdd..d0f34b04027 100644 --- a/plugin/disks/CMakeLists.txt +++ b/plugin/disks/CMakeLists.txt @@ -1,5 +1,7 @@ -IF("${CMAKE_SYSTEM}" MATCHES "Linux") +INCLUDE (CheckIncludeFiles) +CHECK_INCLUDE_FILES ("sys/statvfs.h;mntent.h" INFO_HEADERS LANGUAGE CXX) + +IF (INFO_HEADERS) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/sql) MYSQL_ADD_PLUGIN(DISKS information_schema_disks.cc MODULE_ONLY RECOMPILE_FOR_EMBEDDED) ENDIF() - |