Skip to content

Commit

Permalink
build DLL name with SOVERSION by default on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Nov 9, 2023
1 parent 2996bc6 commit a5d3097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ if(BUILD_SHARED_LIBS)
if(NOT DEFINED CMAKE_C_VISIBILITY_PRESET)
set(CMAKE_C_VISIBILITY_PRESET hidden)
endif()
if (WIN32 AND NOT DEFINED CMAKE_DLL_NAME_WITH_SOVERSION)
set(CMAKE_DLL_NAME_WITH_SOVERSION ON)
endif()
endif()

find_library(MATH_LIBRARY m)
Expand Down

0 comments on commit a5d3097

Please sign in to comment.