From bbbb0075fcd43e7bc5cbba2fc4cf8e1c3d475a27 Mon Sep 17 00:00:00 2001 From: Ashutosh Mishra Date: Mon, 12 May 2025 11:45:20 +0530 Subject: [PATCH] Adding condition for static package type SWDEV-532030 : Static builds are failing for mainline and release because COMP_TYPE is empty in case of static builds. This patch fixes the same. Signed-off-by: Ashutosh Mishra --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d09b094e74..3631e9b23d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -244,7 +244,11 @@ message ( STATUS "Using CPACK_DEBIAN_PACKAGE_RELEASE ${CPACK_DEBIAN_PACKAGE_RELE set ( CPACK_DEBIAN_FILE_NAME "DEB-DEFAULT" ) # Debian specific packaging configuration +if(COMP_TYPE) configure_debian_pkg( ${CORE_TARGET} ${COMP_TYPE} ${CPACK_PACKAGE_VERSION} ${PKG_MAINTAINER_NM} ${PKG_MAINTAINER_EMAIL} ) +elseif(STATIC_COMP_TYPE) +configure_debian_pkg( ${CORE_TARGET} ${STATIC_COMP_TYPE} ${CPACK_PACKAGE_VERSION} ${PKG_MAINTAINER_NM} ${PKG_MAINTAINER_EMAIL} ) +endif() ## RPM package specific variables set ( CPACK_RPM_COMPONENT_INSTALL ON )