Skip to content

Commit

Permalink
Allow configuring cpack strip from command line (openvinotoolkit#6712)
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 authored and rnugmanx committed Aug 26, 2021
1 parent 47dc594 commit e9f8bd3
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 e9f8bd3

Please sign in to comment.