mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
d8084116b5
special cases: * change systemd detection to use CHECK_LIBRARY_EXISTS at least once, to have it detected by build_depends.cmake * similarly, use find_library for pam * unixODBC is weird, libodbc.so is in the unixODBC package, not in the unixODBC-devel, where normally all .so files belong. Packaging bug? As a workaround, use find_file(sql.h) instead of find_path(sql.h) to make sure that /usr/include/sql.h (not /usr/include) is cached by cmake, and later build_depends.cmake will select unixODBC-devel, as a package owning /usr/include/sql.h file.
14 lines
387 B
CMake
14 lines
387 B
CMake
INCLUDE (CheckIncludeFiles)
|
|
INCLUDE (CheckFunctionExists)
|
|
|
|
CHECK_INCLUDE_FILES (security/pam_appl.h HAVE_PAM_APPL_H)
|
|
CHECK_FUNCTION_EXISTS (strndup HAVE_STRNDUP)
|
|
|
|
IF(HAVE_PAM_APPL_H)
|
|
IF(HAVE_STRNDUP)
|
|
ADD_DEFINITIONS(-DHAVE_STRNDUP)
|
|
ENDIF(HAVE_STRNDUP)
|
|
FIND_LIBRARY(PAM_LIBRARY pam)
|
|
MYSQL_ADD_PLUGIN(auth_pam auth_pam.c LINK_LIBRARIES pam MODULE_ONLY)
|
|
ENDIF(HAVE_PAM_APPL_H)
|
|
|