Skip to content

Commit 74885f7

Browse files
committed
fix component name
1 parent 34ed84d commit 74885f7

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

CMakeLists.txt

+1-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@ cmake_minimum_required(VERSION 3.15)
77
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "CMake build type")
88
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Release" "Debug" "RelWithDebInfo" "MinSizeRel")
99

10-
project(openvino_genai)
10+
project(openvino_genai VERSION 2024.2.0.0)
1111

1212
add_subdirectory(./thirdparty/openvino_tokenizers/ "${CMAKE_CURRENT_BINARY_DIR}/openvino_tokenizers/")
13-
set(openvino_genai_VERSION 2024.1.0.0) # TODO: set project version
1413
add_subdirectory(src)
1514
add_subdirectory(text_generation/causal_lm/cpp)
1615

1716
install(DIRECTORY text_generation/causal_lm/cpp/ DESTINATION samples/cpp/causal_lm COMPONENT cpp_samples_genai)
18-
1917
install(FILES LICENSE third-party-programs.txt DESTINATION licenses_genai COMPONENT licensing_genai) # TODO: how to merge with OPenvino
20-
21-
set(CPACK_PACKAGE_VERSION ${openvino_genai_VERSION})
2218
set(CPACK_GENERATOR "ZIP")
2319
include(CPack)

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies = [
2323
cmake.source-dir = "./"
2424
cmake.build-type = "Release"
2525
cmake.targets = ["py_generate_pipeline", "genai"]
26-
install.components = ["genai", "genai_python"]
26+
install.components = ["genai", "pygenai"]
2727
sdist.cmake = true
2828
wheel.packages = ["src/python/openvino_genai"]
2929
wheel.install-dir = "openvino_genai"

src/cpp/CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ install(TARGETS ${TARGET_NAME} LIBRARY DESTINATION . COMPONENT core_genai RUNTIM
7474
include(GenerateExportHeader)
7575

7676
generate_export_header(genai)
77-
set_property(TARGET genai PROPERTY VERSION ${openvino_genai_VERSION})
78-
set_property(TARGET genai PROPERTY SOVERSION 3)
79-
set_property(TARGET genai PROPERTY INTERFACE_genai_MAJOR_VERSION 3)
80-
set_property(TARGET genai APPEND PROPERTY COMPATIBLE_INTERFACE_STRING genai_MAJOR_VERSION)
77+
# set_property(TARGET genai PROPERTY VERSION ${openvino_genai_VERSION})
78+
# set_property(TARGET genai PROPERTY SOVERSION 3)
79+
# set_property(TARGET genai PROPERTY INTERFACE_genai_MAJOR_VERSION 3)
80+
# set_property(TARGET genai APPEND PROPERTY COMPATIBLE_INTERFACE_STRING genai_MAJOR_VERSION)
8181

8282
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" ARCH_FOLDER)
8383
if(X86_64)

src/python/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pybind11_add_module(py_generate_pipeline py_generate_pipeline.cpp)
1919
target_link_libraries(py_generate_pipeline PRIVATE genai)
2020

2121
# find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
22-
install(TARGETS py_generate_pipeline LIBRARY DESTINATION . COMPONENT pygenai_${Python_VERSION_MAJOR}_${Python_VERSION_MINOR})
22+
install(TARGETS py_generate_pipeline LIBRARY DESTINATION . COMPONENT pygenai)
2323

2424
# setting RPATH / LC_RPATH depending on platform
2525
if(LINUX)

0 commit comments

Comments
 (0)