cmake 报错:Cannot specify link libraries for target " XXX XXX " which is not built by this project. 这是因为在使用target_link_libraries的时候,没有放到add_executable后面。 版权声明:本文版权归作者所有,如需转载,请标明出处