Append '-SOVERSION' to DLL base file name for mingw builds to match common style

pull/4185/head
Ralf Habacker 2021-11-17 08:28:07 +01:00
parent 3db1592f7e
commit 2ceb18746b
1 changed files with 6 additions and 0 deletions

View File

@ -1261,6 +1261,12 @@ SET_TARGET_PROPERTIES( assimp PROPERTIES
OUTPUT_NAME assimp${LIBRARY_SUFFIX}
)
if (WIN32 AND CMAKE_COMPILER_IS_GNUCXX AND BUILD_SHARED_LIBS)
set_target_properties(assimp PROPERTIES
SUFFIX "-${ASSIMP_SOVERSION}${CMAKE_SHARED_LIBRARY_SUFFIX}"
)
endif()
if (APPLE)
if (ASSIMP_BUILD_FRAMEWORK)
SET_TARGET_PROPERTIES( assimp PROPERTIES