Skip to content

Commit

Permalink
Allow configuring cpack strip from command line
Browse files Browse the repository at this point in the history
Check if CPACK_STRIP_FILES configured before setting it
ON by default. This allows to configre it from command
line when required.
  • Loading branch information
Andrey Somsikov committed Jul 20, 2021
1 parent 960ba48 commit aba12f7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/developer_package/packaging.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit aba12f7

Please sign in to comment.