CMake Error at CMakeLists.txt:4 (find_package): By not providing "Findautoware_cmake.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "autoware_cmake", but CMake did not find one. Could not find a package configuration file provided by "autoware_cmake" with any of the following names: autoware_cmakeConfig.cmake autoware_cmake-config.cmake Add the installation prefix of "autoware_cmake" to CMAKE_PREFIX_PATH or set "autoware_cmake_DIR" to a directory containing one of the above files. If "autoware_cmake" provides a separate development package or SDK, be sure it has been installed.
时间: 2023-06-19 20:09:35 浏览: 496
find-package深入刨析及使用实例
这个错误提示是在使用 CMake 构建项目时出现的。提示中说缺少名为 "Findautoware_cmake.cmake" 的文件,因此 CMake 无法找到 "autoware_cmake" 这个包的配置文件。
解决方法:
1. 确保安装了 "autoware_cmake" 这个包,并且已经正确安装。
2. 将 "autoware_cmake" 的安装路径添加到 CMAKE_PREFIX_PATH 环境变量中,或者将 "autoware_cmake_DIR" 设置为包含上述文件之一的目录。
3. 如果 "autoware_cmake" 提供了单独的开发包或 SDK,请确保已经正确安装。
阅读全文