diff options
author | Philip Bailey <pbailey@heartflow.com> | 2022-02-08 19:40:57 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-02-08 21:23:08 (GMT) |
commit | 114a04f89caa926d7559193a5b6d92a57b17bdc3 (patch) | |
tree | 57fec969912ab1520d652a6189b4df92a73e8848 /Modules/Internal | |
parent | 6b6d0d12a7b1930e2f899f34aa88a948114abe6a (diff) | |
download | CMake-114a04f89caa926d7559193a5b6d92a57b17bdc3.zip CMake-114a04f89caa926d7559193a5b6d92a57b17bdc3.tar.gz CMake-114a04f89caa926d7559193a5b6d92a57b17bdc3.tar.bz2 |
CPack/RPM: Honor CPACK_RPM_<component>_PACKAGE_ variables when set OFF
Fixes: #23182
Diffstat (limited to 'Modules/Internal')
-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() |