fix static library link order

This commit is contained in:
xgj 2021-04-10 22:24:26 +08:00
parent e495dfca64
commit ebf650cf4f

View File

@ -48,4 +48,4 @@ else()
install(TARGETS MediaServer DESTINATION ${INSTALL_PATH_EXECUTABLE})
endif()
target_link_libraries(MediaServer jsoncpp ${LINK_LIB_LIST})
target_link_libraries(MediaServer -Wl,--start-group jsoncpp ${LINK_LIB_LIST} -Wl,--end-group)