By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH

CMake Warning at hector_compressed_map_transport/CMakeLists.txt:26 (find_package):
  By not providing "FindEigen3.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Eigen3", but
  CMake did not find one.

  Could not find a package configuration file provided by "Eigen3" with any
  of the following names:

    Eigen3Config.cmake
    eigen3-config.cmake

  Add the installation prefix of "Eigen3" to CMAKE_PREFIX_PATH or set
  "Eigen3_DIR" to a directory containing one of the above files.  If "Eigen3"
  provides a separate development package or SDK, be sure it has been
  installed.

 

解决办法:

复制FindEigen3.cmake到工程下,在工程的CMakeLists.txt里面添加

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}) 

find_package(Eigen3)

你可能感兴趣的:(ubuntu,ROS)