Skip to content

Commit

Permalink
[TOKENIZERS] Set cmake project version (#791)
Browse files Browse the repository at this point in the history
* set cpack version

* reverted commit-id from version

* set openvino version

* review fixes
  • Loading branch information
mryzhov authored Dec 18, 2023
1 parent 251be0a commit 297d626
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/custom_operations/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 297d626

Please sign in to comment.