Skip to content

Commit 2128979

Browse files
committed
Add version information to the generated .so file
1 parent d16dba2 commit 2128979

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ add_library(${PROJECT_NAME}
2929
"${CMAKE_CURRENT_BINARY_DIR}/version.cpp"
3030
)
3131

32+
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION})
33+
3234
target_include_directories(${PROJECT_NAME} PUBLIC
3335
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/include>
3436
$<INSTALL_INTERFACE:include>)

0 commit comments

Comments
 (0)