Skip to content

Commit

Permalink
fix srpm builds after fe065f8
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Dec 6, 2021
1 parent 214cad8 commit 71027ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/Internal/CPack/CPackRPM.cmake
Expand Up @@ -18,7 +18,8 @@ macro(restore WHAT)
endmacro()

foreach (WHAT SUMMARY DESCRIPTION)
if(NOT CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT})
if(CPACK_RPM_PACKAGE_COMPONENT AND
NOT CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT})
message(FATAL_ERROR "CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT} is not defined")
endif()
endforeach()
Expand Down

0 comments on commit 71027ec

Please sign in to comment.