mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-23 03:10:04 +08:00
只有linux平台打开链接顺序无关选项
This commit is contained in:
parent
5fadd2665d
commit
9e93561c77
@ -48,8 +48,8 @@ else()
|
|||||||
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_EXECUTABLE})
|
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_EXECUTABLE})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (WIN32)
|
if (CMAKE_SYSTEM_NAME MATCHES "Linux")
|
||||||
target_link_libraries(MediaServer jsoncpp ${LINK_LIB_LIST})
|
|
||||||
else ()
|
|
||||||
target_link_libraries(MediaServer -Wl,--start-group jsoncpp ${LINK_LIB_LIST} -Wl,--end-group)
|
target_link_libraries(MediaServer -Wl,--start-group jsoncpp ${LINK_LIB_LIST} -Wl,--end-group)
|
||||||
|
else ()
|
||||||
|
target_link_libraries(MediaServer jsoncpp ${LINK_LIB_LIST})
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
Reference in New Issue
Block a user