Commit 156bf529 authored by Sergei Golubchik's avatar Sergei Golubchik

fix SRPM builds on SLES 12.5, cmake 3.5.2

the bug with %attr(700,%{mysqld_user},-)
was fixed not right after 2.8.12, but only in 3.10.0

https://gitlab.kitware.com/cmake/cmake/-/commit/a351edd245
parent 6400b199
......@@ -42,8 +42,8 @@ IF(HAVE_PAM_APPL_H AND HAVE_GETGROUPLIST)
IF (TARGET auth_pam)
MYSQL_ADD_EXECUTABLE(auth_pam_tool auth_pam_tool.c DESTINATION ${INSTALL_PLUGINDIR}/auth_pam_tool_dir COMPONENT Server)
TARGET_LINK_LIBRARIES(auth_pam_tool pam)
IF (CMAKE_MAJOR_VERSION EQUAL 2)
# 2.8.12 bug (in CentOS 7)
IF (CMAKE_VERSION VERSION_LESS 3.10.0)
# cmake bug #14362
SET(user mysql)
ELSE()
SET(user "%{mysqld_user}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment