Skip to content

Commit

Permalink
[build] CMake: fix system library names for MinGW (#2219)
Browse files Browse the repository at this point in the history
.lib extension is used in MSVC and MSVC-like toolchain. In MinGW environment,
.dll.a extension is used for system import libraries.
  • Loading branch information
Biswa96 committed Jan 17, 2022
1 parent 8afcdbe commit 2aa90bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -906,7 +906,7 @@ if (srt_libspec_shared)
set_target_properties(${TARGET_srt}_shared PROPERTIES LINK_FLAGS "/DELAYLOAD:libeay32.dll")
endif()
elseif (MINGW)
target_link_libraries(${TARGET_srt}_shared PRIVATE wsock32.lib ws2_32.lib)
target_link_libraries(${TARGET_srt}_shared PRIVATE wsock32 ws2_32)
elseif (APPLE)
set_property(TARGET ${TARGET_srt}_shared PROPERTY MACOSX_RPATH ON)
endif()
Expand Down

0 comments on commit 2aa90bb

Please sign in to comment.