Skip to content

Commit

Permalink
cmake: use SONAME instead of full name for shared vendored libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Sep 5, 2023
1 parent bea46bd commit 3d47005
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmake/PrivateSdlFunctions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,12 @@ function(target_get_dynamic_library DEST TARGET)
endif()
set (result "$<TARGET_FILE_NAME:${TARGET}>")
endif()
set(${DEST} ${result} PARENT_SCOPE)
# TARGET_SONAME_FILE is not allowed for DLL target platforms.
if(WIN32)
set(result "$<TARGET_FILE_NAME:${TARGET}>")
else()
set(result "$<TARGET_SONAME_FILE_NAME:${TARGET}>")
endif()
endfunction()

macro(sdl_check_project_in_subfolder relative_subfolder name vendored_option)
Expand Down

0 comments on commit 3d47005

Please sign in to comment.