From 2738ca93a24fdad3592d8ac08ee049f59319a10a Mon Sep 17 00:00:00 2001 From: Popescu V <136721202+popescu-v@users.noreply.github.com> Date: Thu, 11 Jan 2024 17:11:49 +0100 Subject: [PATCH] Exclude Unspecified component package from being built related_to #120 --- packaging/packaging.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/packaging.cmake b/packaging/packaging.cmake index 2ffa8830a..831e41dde 100644 --- a/packaging/packaging.cmake +++ b/packaging/packaging.cmake @@ -146,6 +146,9 @@ set(CPACK_RPM_KHIOPS_POST_INSTALL_SCRIPT_FILE "${PROJECT_SOURCE_DIR}/packaging/l set(CPACK_RPM_KNI_POST_INSTALL_SCRIPT_FILE "${PROJECT_SOURCE_DIR}/packaging/linux/redhat/kni.post") set(CPACK_RPM_KNI_POSTUN_INSTALL_SCRIPT_FILE "${PROJECT_SOURCE_DIR}/packaging/linux/redhat/kni.postun") +get_cmake_property(CPACK_COMPONENTS_ALL COMPONENTS) +list(REMOVE_ITEM CPACK_COMPONENTS_ALL "Unspecified") + include(CPack) # Check if all files are installed within a component. If not, these files will be in the package