Skip to content

Commit 28766a8

Browse files
committed
[cmake] Add version to shared library output
1 parent 0eb98b4 commit 28766a8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ target_link_libraries(open-ocpp-dynamic
101101
ws
102102
websockets
103103
)
104-
set_target_properties(open-ocpp-dynamic PROPERTIES OUTPUT_NAME "open-ocpp")
104+
set_target_properties(open-ocpp-dynamic PROPERTIES
105+
OUTPUT_NAME "open-ocpp"
106+
VERSION ${PROJECT_VERSION}
107+
SOVERSION ${PROJECT_VERSION_MAJOR}
108+
)
105109

106110
# Install commands
107111
include(GNUInstallDirs)

0 commit comments

Comments
 (0)