赞
踩
CMake Error at CMakeLists.txt:36 (add_project_dependency):
Unknown CMake command "add_project_dependency".
Errors << nmpc_ddp:cmake /home/zxa/ros/ws_bwc/logs/nmpc_ddp/build.cmake.001.log
CMake Error at CMakeLists.txt:14 (include):
include could not find requested file:
../cmake/base.cmake
出现上述报错,均是cmake版本太低的原因,无法识别新版本cmake命令,解决方法:升级Cmake即可,但是升级cmake时,
不要卸载原有ubuntu cmake!!!sudo apt-get autoremove cmake !!NO!!!!!!!
不要卸载原有ubuntu cmake!!!sudo apt-get autoremove cmake !!NO!!!!!!!
不要卸载原有ubuntu cmake!!!sudo apt-get autoremove cmake !!NO!!!!!!!
升级cmake,重新编译。亲测cmake-3.26.0版本可有效解决该问题。
cmake升级参考方法
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。