2014-11-25 21:48:13 +01:00
|
|
|
INCLUDE (CheckIncludeFiles)
|
|
|
|
INCLUDE (CheckLibraryExists)
|
|
|
|
|
|
|
|
CHECK_LIBRARY_EXISTS(crack FascistCheckUser "" HAVE_LIBCRACK)
|
2015-02-12 12:26:37 +01:00
|
|
|
|
2015-02-16 23:18:32 +01:00
|
|
|
SET(CMAKE_REQUIRED_DEFINITIONS -Dsize_t=int) # debian hack, debian bug.
|
|
|
|
CHECK_INCLUDE_FILES (crack.h HAVE_CRACK_H)
|
|
|
|
|
2014-11-25 21:48:13 +01:00
|
|
|
IF (HAVE_ALLOCA_H AND HAVE_CRACK_H AND HAVE_LIBCRACK AND HAVE_MEMCPY)
|
2015-02-12 12:26:37 +01:00
|
|
|
MYSQL_ADD_PLUGIN(cracklib_password_check cracklib_password_check.c
|
2015-02-16 23:18:32 +01:00
|
|
|
LINK_LIBRARIES crack MODULE_ONLY
|
|
|
|
COMPONENT cracklib-password-check)
|
2014-11-25 21:48:13 +01:00
|
|
|
ENDIF()
|