Unable to find Eigen3 with CMake

后端 未结 2 751
星月不相逢
星月不相逢 2020-12-11 15:57

I am kind of desperate: For my studies I need to work with Eigen and CMake. I\'m able to use Eigen if I copy the whole library in the directories where my compiler looks by

2条回答
  •  醉话见心
    2020-12-11 16:43

    Add the path of FindEigen3.cmake before find_package(Eigen3 REQUIRED), like this:

    LIST(APPEND CMAKE_MODULE_PATH "/usr/share/cmake-2.8/Modules/")
    find_package(Eigen3)
    

提交回复
热议问题