Skip to content

Commit

Permalink
[cmake] Add SOVERSION to library. Fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Jan 10, 2024
1 parent cc9062e commit 483ec92
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ if(NOT CMAKE_CXX_STANDARD)
endif()
check_cxx_source_compiles("#include <thread>\nint main() { std::jthread t; }" HAS_STD_JTHREAD)


### Main library ###
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
Expand Down Expand Up @@ -176,6 +175,11 @@ else()
)
set(_public PUBLIC)
set(_private PRIVATE)

set_target_properties(libremidi PROPERTIES
VERSION ${PROJECT_VERSION}
SOVERSION ${PROJECT_VERSION}
)
endif()

add_library(libremidi::libremidi ALIAS libremidi)
Expand Down

0 comments on commit 483ec92

Please sign in to comment.