mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
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
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user