Open cryptix opened 2 years ago
i fixed it by changing following lines in CMakeLists.txt:
lines 132-150 into:
#--------------------
# DEPENDENCY: eigen 3
#--------------------
# find_path(EIGEN_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
# HINTS ENV EIGEN3_INC_DIR
# ENV EIGEN3_DIR
# PATHS Eigen/Core
# /usr/local/include
# /usr/include
# PATH_SUFFIXES include eigen3 eigen
# DOC "Directory containing the Eigen3 header files"
# )
# Suppress Eigen's warning by adding it to the system's library
# include_directories(SYSTEM "${EIGEN_INCLUDE_DIR}")
#TODO: this should be a more standard way
find_package(Eigen3 REQUIRED)
message("-- eigen3 , version ${EIGEN_VERSION}")
and lines 394-396:
target_link_libraries(pointmatcher PUBLIC Eigen3::Eigen ${Boost_LIBRARIES})
target_link_libraries(pointmatcher PRIVATE Eigen3::Eigen ${libnabo_LIBRARIES})
target_link_libraries(pointmatcher PRIVATE Eigen3::Eigen ${EXTERNAL_LIBS})
According to docs in Eigen, there are 2 ways to use Eigen:
Does somebody know what this is about?
This is on linux using gcc 7.5, 8 and 10 and eigen 3.4.0 boost 1.5.5 and 1.6.5.