Skip to content

Commit 483bdf3

Browse files
cdluminatesparkprime
authored andcommitted
CMake: add {,SO}VERSION properties for libjsonnet.so
1 parent 59f655a commit 483bdf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ target_link_libraries(libjsonnet md5)
3434

3535
# CMake prepends CMAKE_SHARED_LIBRARY_PREFIX to shared libraries, so without
3636
# this step the output would be |liblibjsonnet|.
37-
set_target_properties(libjsonnet PROPERTIES OUTPUT_NAME jsonnet)
37+
set_target_properties(libjsonnet PROPERTIES OUTPUT_NAME jsonnet
38+
VERSION 0.12.1 SOVERSION 0)
3839
install(TARGETS libjsonnet DESTINATION lib)
3940

4041
# Static library for jsonnet command-line tool.

0 commit comments

Comments
 (0)