Skip to content

Commit

Permalink
add version to vsag_static dependency
Browse files Browse the repository at this point in the history
Signed-off-by: jiacai2050 <dev@liujiacai.net>
  • Loading branch information
jiacai2050 committed Nov 7, 2024
1 parent 2a3d4dd commit 33d7e3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,3 +287,4 @@ add_custom_target (version
-P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/GenerateVersionHeader.cmake
)
add_dependencies (vsag version)
add_dependencies (vsag_static version)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ include_directories (vsag-cmake-example PRIVATE ${vsag_SOURCE_DIR}/include)
# compile executable and link to vsag
add_executable (vsag-cmake-example src/main.cpp)
target_link_libraries (vsag-cmake-example PRIVATE vsag)
# If you want static linking
# target_link_libraries (vsag-cmake-example PRIVATE vsag_static)
# add dependency
add_dependencies (vsag-cmake-example vsag)
Expand Down

0 comments on commit 33d7e3d

Please sign in to comment.