From 114a04f89caa926d7559193a5b6d92a57b17bdc3 Mon Sep 17 00:00:00 2001 From: Philip Bailey Date: Tue, 8 Feb 2022 14:40:57 -0500 Subject: CPack/RPM: Honor CPACK_RPM__PACKAGE_ variables when set OFF Fixes: #23182 --- Modules/Internal/CPack/CPackRPM.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12