mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-22 01:27:50 +08:00
fix: windows下通过mingw编译报错 (#4617)
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
This commit is contained in:
parent
1e6a8964cc
commit
1191f15132
@ -50,6 +50,10 @@ target_compile_definitions(MediaServer
|
|||||||
target_compile_options(MediaServer
|
target_compile_options(MediaServer
|
||||||
PRIVATE ${COMPILE_OPTIONS_DEFAULT})
|
PRIVATE ${COMPILE_OPTIONS_DEFAULT})
|
||||||
|
|
||||||
|
if(MINGW)
|
||||||
|
update_cached_list(MK_LINK_LIBRARIES dbghelp)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
target_link_libraries(MediaServer -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
|
target_link_libraries(MediaServer -Wl,--start-group ${MK_LINK_LIBRARIES} -Wl,--end-group)
|
||||||
else()
|
else()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user