From 2c3c8b92e0fc15cea4d9504878643b2e38a8eafa Mon Sep 17 00:00:00 2001 From: Leonardo Grasso Date: Thu, 21 Apr 2022 18:13:04 +0200 Subject: [PATCH] build: MUSL builds can't have plugins Signed-off-by: Leonardo Grasso --- cmake/modules/CPackConfig.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/modules/CPackConfig.cmake b/cmake/modules/CPackConfig.cmake index db699964fc3..794274cdccf 100644 --- a/cmake/modules/CPackConfig.cmake +++ b/cmake/modules/CPackConfig.cmake @@ -29,8 +29,12 @@ set(CPACK_PACKAGE_RELOCATABLE "OFF") set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_CURRENT_BINARY_DIR};${FALCO_COMPONENT_NAME};${FALCO_COMPONENT_NAME};/" "${CMAKE_CURRENT_BINARY_DIR};${DRIVER_COMPONENT_NAME};${DRIVER_COMPONENT_NAME};/" - "${CMAKE_CURRENT_BINARY_DIR};${PLUGINS_COMPONENT_NAME};${PLUGINS_COMPONENT_NAME};/" ) +if(NOT MUSL_OPTIMIZED_BUILD) # static builds do not have plugins + list(APPEND CPACK_INSTALL_CMAKE_PROJECTS + "${CMAKE_CURRENT_BINARY_DIR};${PLUGINS_COMPONENT_NAME};${PLUGINS_COMPONENT_NAME};/" + ) +endif() if(NOT CPACK_GENERATOR) set(CPACK_GENERATOR DEB RPM TGZ)