Skip to content

Commit

Permalink
Merge pull request #75 from cottsay/cottsay/eigen3
Browse files Browse the repository at this point in the history
Handle FindEigen3 module's differing definitions
  • Loading branch information
mabelzhang authored Jan 15, 2021
2 parents ff1f615 + 7000bff commit afc3349
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ find_package(catkin REQUIRED
find_package(Boost REQUIRED COMPONENTS system thread)

find_package(Eigen3 REQUIRED)
# Handle FindEigen3 module's differing definitions
if(NOT DEFINED EIGEN3_INCLUDE_DIRS AND DEFINED EIGEN3_INCLUDE_DIR)
set(EIGEN3_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIR})
endif()

catkin_python_setup()

Expand All @@ -27,7 +31,7 @@ catkin_package(
include_directories(include
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${EIGEN3_INCLUDE_DIRS}
)

add_library(laser_geometry src/laser_geometry.cpp)
Expand Down

0 comments on commit afc3349

Please sign in to comment.