mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
非windows平台,才忽略静态库链接顺序
This commit is contained in:
parent
bbe67e928e
commit
5fadd2665d
@ -48,4 +48,8 @@ else()
|
|||||||
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_EXECUTABLE})
|
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_EXECUTABLE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(MediaServer -Wl,--start-group jsoncpp ${LINK_LIB_LIST} -Wl,--end-group)
|
if (WIN32)
|
||||||
|
target_link_libraries(MediaServer jsoncpp ${LINK_LIB_LIST})
|
||||||
|
else ()
|
||||||
|
target_link_libraries(MediaServer -Wl,--start-group jsoncpp ${LINK_LIB_LIST} -Wl,--end-group)
|
||||||
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user