diff options
author | Artur Samarin <39006-asamarin97@users.noreply.gitlab.kitware.com> | 2021-07-30 16:38:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-08-02 19:04:22 (GMT) |
commit | 3cdf23985fc4578b719546a0e76bdcf82457477a (patch) | |
tree | c559b6cdab4a39dc7aeee252866c2003abb387f7 /Modules/Internal | |
parent | e9b8d6fdbccee6049d8a5217f99c1989e7e97d9d (diff) | |
download | CMake-3cdf23985fc4578b719546a0e76bdcf82457477a.zip CMake-3cdf23985fc4578b719546a0e76bdcf82457477a.tar.gz CMake-3cdf23985fc4578b719546a0e76bdcf82457477a.tar.bz2 |
CPackRPM: avoid a spurious `;` in the `%pre` and other sections with scripts
This was accidentally added by commit 34c8a23044 (CPackRPM: add
scriplets tags only if scripts exist, 2021-04-01, v3.21.0-rc1~387^2).
Fixes: #22501
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 47d2a5c..cbd748b 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() |