mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
de8f29bd3a
* readability fixes * CPackRPM wrapper to fix property leakage between components (cmake bug 13248)
16 lines
450 B
CMake
16 lines
450 B
CMake
#
|
|
# Wrapper for CPackRPM.cmake
|
|
#
|
|
|
|
# load the original CPackRPM.cmake
|
|
set(orig_CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH})
|
|
unset(CMAKE_MODULE_PATH)
|
|
include(CPackRPM)
|
|
set(CMAKE_MODULE_PATH ${orig_CMAKE_MODULE_PATH})
|
|
|
|
# per-component cleanup
|
|
foreach(_RPM_SPEC_HEADER URL REQUIRES SUGGESTS PROVIDES OBSOLETES PREFIX CONFLICTS AUTOPROV AUTOREQ AUTOREQPROV)
|
|
unset(TMP_RPM_${_RPM_SPEC_HEADER})
|
|
unset(CPACK_RPM_PACKAGE_${_RPM_SPEC_HEADER}_TMP)
|
|
endforeach()
|
|
|