diff options
author | Brad King <brad.king@kitware.com> | 2022-02-15 14:54:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-02-15 14:54:57 (GMT) |
commit | f76809c892743de8a59dbcbdd88adb393c045169 (patch) | |
tree | 995ed36c7d2d7139ec57ed468a4f650400a54770 /Modules | |
parent | bdc6f379e14f1d0f8dca8aa947630262e32201dd (diff) | |
parent | 114a04f89caa926d7559193a5b6d92a57b17bdc3 (diff) | |
download | CMake-f76809c892743de8a59dbcbdd88adb393c045169.zip CMake-f76809c892743de8a59dbcbdd88adb393c045169.tar.gz CMake-f76809c892743de8a59dbcbdd88adb393c045169.tar.bz2 |
Merge topic 'cpack-rpm-component-var-off'
114a04f89c CPack/RPM: Honor CPACK_RPM_<component>_PACKAGE_ variables when set OFF
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6963
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Internal/CPack/CPackRPM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/CPack/CPackRPM.cmake b/Modules/Internal/CPack/CPackRPM.cmake index c72bf6d..cd631b8 100644 --- a/Modules/Internal/CPack/CPackRPM.cmake +++ b/Modules/Internal/CPack/CPackRPM.cmake @@ -790,7 +790,7 @@ function(cpack_rpm_variable_fallback OUTPUT_VAR_NAME) set(FALLBACK_VAR_NAMES ${ARGN}) foreach(variable_name IN LISTS FALLBACK_VAR_NAMES) - if(${variable_name}) + if(DEFINED ${variable_name}) set(${OUTPUT_VAR_NAME} "${${variable_name}}" PARENT_SCOPE) break() endif() |