cmake target_link_libraries 链接库顺序和gcc是一致的,即被链接的库放到后面,例如: liba.a依赖libb.a target_link_libraries(target a b)