diff options
author | Brad King <brad.king@kitware.com> | 2021-08-03 15:00:27 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-08-03 15:01:08 (GMT) |
commit | a6eadb8031483eb7099c9d21988ae36026275160 (patch) | |
tree | c09a51a013cf1b575821ca2b2e6c6ca7860f9fac /Modules/Internal | |
parent | 2d7015fd3e5087130bbfa7c6320f56a59d008233 (diff) | |
parent | 3cdf23985fc4578b719546a0e76bdcf82457477a (diff) | |
download | CMake-a6eadb8031483eb7099c9d21988ae36026275160.zip CMake-a6eadb8031483eb7099c9d21988ae36026275160.tar.gz CMake-a6eadb8031483eb7099c9d21988ae36026275160.tar.bz2 |
Merge topic 'cpack-rpm-pre-semicolon'
3cdf23985f CPackRPM: avoid a spurious `;` in the `%pre` and other sections with scripts
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !6415
Diffstat (limited to 'Modules/Internal')
-rw-r--r-- | Modules/Internal/CPack/CPackRPM.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/Internal/CPack/CPackRPM.cmake b/Modules/Internal/CPack/CPackRPM.cmake index bfb42f3..c72bf6d 100644 --- a/Modules/Internal/CPack/CPackRPM.cmake +++ b/Modules/Internal/CPack/CPackRPM.cmake @@ -11,9 +11,7 @@ function(set_spec_script_if_enabled TYPE PACKAGE_NAME VAR) if(PACKAGE_NAME) set(PACKAGE_NAME " -n ${PACKAGE_NAME}") endif() - set(${TYPE}_ - "%${TYPE}${PACKAGE_NAME}\n" - "${VAR}\n" PARENT_SCOPE) + set(${TYPE}_ "%${TYPE}${PACKAGE_NAME}\n${VAR}\n" PARENT_SCOPE) else() set(${TYPE} "" PARENT_SCOPE) endif() |