cmake 解决错误:Cannot specify link libraries for target

问题: "Cannot specify link libraries for target "xxx" which is not built by the project"

解决办法:要将 ADD_EXECUTABLE的声明放到设置库文件的TARGET_LINK_LIBRARIES之前

posted @ 2020-11-07 18:13  码我疯狂的码  阅读(5498)  评论(2)    收藏  举报