diff --git a/modules/custom_operations/CMakeLists.txt b/modules/custom_operations/CMakeLists.txt index 9c4bb125a..3c4b3da18 100644 --- a/modules/custom_operations/CMakeLists.txt +++ b/modules/custom_operations/CMakeLists.txt @@ -14,4 +14,8 @@ if(NOT OpenVINODeveloperPackage_FOUND) find_package(OpenVINO REQUIRED COMPONENTS Runtime) endif() +# set the project version using OpenVINO major, minor and patch versions +set(CMAKE_PROJECT_VERSION_TWEAK 0) +set(CMAKE_PROJECT_VERSION "${OpenVINO_VERSION}.${CMAKE_PROJECT_VERSION_TWEAK}") + add_subdirectory(user_ie_extensions) diff --git a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt index 29c4961c9..8689c7a8a 100644 --- a/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt +++ b/modules/custom_operations/user_ie_extensions/tokenizer/CMakeLists.txt @@ -181,3 +181,9 @@ else() set(extra_libs "${fast_tokenizer_SOURCE_DIR}/lib/libcore_tokenizers.dylib" PARENT_SCOPE) endif() endif() + +# cpack configuration +set(CPACK_PACKAGE_VERSION "${CMAKE_PROJECT_VERSION}") +set(CPACK_SOURCE_GENERATOR "") # not used + +include (CPack) \ No newline at end of file