From aba12f77c10f1b39ed19ec1d10422d55604b3937 Mon Sep 17 00:00:00 2001 From: Andrey Somsikov Date: Tue, 20 Jul 2021 10:31:57 +0300 Subject: [PATCH] Allow configuring cpack strip from command line Check if CPACK_STRIP_FILES configured before setting it ON by default. This allows to configre it from command line when required. --- cmake/developer_package/packaging.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/developer_package/packaging.cmake b/cmake/developer_package/packaging.cmake index 4cb21210d4a166..4095a16157c068 100644 --- a/cmake/developer_package/packaging.cmake +++ b/cmake/developer_package/packaging.cmake @@ -53,7 +53,9 @@ macro(ie_cpack) set(CPACK_PACKAGE_VENDOR "Intel Corporation") set(CPACK_VERBATIM_VARIABLES ON) set(CPACK_COMPONENTS_ALL ${ARGN}) - set(CPACK_STRIP_FILES ON) + if (NOT DEFINED CPACK_STRIP_FILES) + set(CPACK_STRIP_FILES ON) + endif() set(CPACK_THREADS 8) string(REPLACE "/" "_" CPACK_PACKAGE_VERSION "${CI_BUILD_NUMBER}")