Skip to content

missing eigen3 includes #99

@josch

Description

@josch

Hi,

since ply_c requires eigen3, this requirement should be stated in the CMakeLists.txt without it, the compilation will not be able to add the eigen3 include directories. Here is a patch that worked for me:

diff --git a/partition/ply_c/CMakeLists.txt b/partition/ply_c/CMakeLists.txt
index 169c98f..eaedb5a 100644
--- a/partition/ply_c/CMakeLists.txt
+++ b/partition/ply_c/CMakeLists.txt
@@ -13,8 +13,9 @@ SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -fopenmp -O3")
 ##############################
 
 find_package(Boost 1.65.1 COMPONENTS python numpy REQUIRED)
+find_package(Eigen3 REQUIRED)
 
-include_directories(${Boost_INCLUDE_DIRS})
+include_directories(${Boost_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS})
 link_directories(${Boost_LIBRARY_DIRS})
 
 message("Boost includes ARE " ${Boost_INCLUDE_DIRS})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions