Commit 725579c0 authored by Sergei Golubchik's avatar Sergei Golubchik

cmake: pass CMAKE_BUILD_TYPE into src.rpm

and don't pass BUILD_CONFIG twice, once is enough.
parent 7362f115
......@@ -282,7 +282,6 @@ IF(CMAKE_VERSION VERSION_GREATER "3.9.99")
SET(CPACK_SOURCE_GENERATOR "RPM")
SETA(CPACK_RPM_SOURCE_PKG_BUILD_PARAMS
"-DBUILD_CONFIG=mysql_release"
"-DRPM=${RPM}"
"-DCPACK_RPM_BUILD_SOURCE_DIRS_PREFIX=/usr/src/debug/${CPACK_RPM_PACKAGE_NAME}-${VERSION}"
)
......@@ -293,6 +292,7 @@ MACRO(ADDIF var)
ENDIF()
ENDMACRO()
ADDIF(CMAKE_BUILD_TYPE)
ADDIF(BUILD_CONFIG)
ADDIF(WITH_SSL)
......
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