summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2021-11-29 17:02:31 +0100
committerSergei Golubchik <serg@mariadb.org>2021-12-06 18:50:19 +0100
commit71027eceac31c9f35c94c9893abb072e41867541 (patch)
tree9407e6801e642768f0a48c1488150e40c82e0bfb
parent214cad8c3b56810574020a5e995d22b804294cf8 (diff)
downloadmariadb-git-71027eceac31c9f35c94c9893abb072e41867541.tar.gz
fix srpm builds after fe065f8d90b0
-rw-r--r--cmake/Internal/CPack/CPackRPM.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/Internal/CPack/CPackRPM.cmake b/cmake/Internal/CPack/CPackRPM.cmake
index a1040a0161f..d16965be1e9 100644
--- a/cmake/Internal/CPack/CPackRPM.cmake
+++ b/cmake/Internal/CPack/CPackRPM.cmake
@@ -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()