From b69246dbf5d277cf964babdbfea861ff7658c8c3 Mon Sep 17 00:00:00 2001 From: Andrey Somsikov Date: Tue, 20 Jul 2021 17:26:48 +0300 Subject: [PATCH] Allow configuring cpack strip from command line (#6712) 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}")