Hector_slam 找不到eigen

eigen庫位置,常發現cmake找不到,修改cmake,以下連接git

https://github.com/tu-darmstadt-ros-pkg/hector_slam/commit/d9e44fb85087cdf40d4fe702082701b2882eefeagithub

      find_package(Eigen3)
      if(NOT EIGEN3_FOUND)
      # Fallback to cmake_modules
      find_package(cmake_modules REQUIRED)
      find_package(Eigen REQUIRED)
      set(EIGEN3_INCLUDE_DIRS ${EIGEN_INCLUDE_DIRS})
      set(EIGEN3_LIBRARIES ${EIGEN_LIBRARIES}) # Not strictly necessary as Eigen is head only
      # Possibly map additional variables to the EIGEN3_ prefix.
      else()
      set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
      endif()
相關文章
相關標籤/搜索