Skip to content

Commit 71027ec

Browse files
committed
fix srpm builds after fe065f8
1 parent 214cad8 commit 71027ec

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/Internal/CPack/CPackRPM.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ macro(restore WHAT)
1818
endmacro()
1919

2020
foreach (WHAT SUMMARY DESCRIPTION)
21-
if(NOT CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT})
21+
if(CPACK_RPM_PACKAGE_COMPONENT AND
22+
NOT CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT})
2223
message(FATAL_ERROR "CPACK_RPM_${CPACK_RPM_PACKAGE_COMPONENT}_PACKAGE_${WHAT} is not defined")
2324
endif()
2425
endforeach()

0 commit comments

Comments
 (0)