Commit 114a04f8 authored by Philip Bailey's avatar Philip Bailey Committed by Brad King
Browse files

CPack/RPM: Honor CPACK_RPM_<component>_PACKAGE_ variables when set OFF

Fixes: #23182
parent 6b6d0d12
Pipeline #267286 waiting for manual action with stages
in 23 minutes and 56 seconds
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment