CMake Error: EIGEN3_INCLUDE_DIR used as include directory in directory

Hello,
I am trying to build the fcl library, but I keep facing this error

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/home/yecinem/fcl/src/EIGEN3_INCLUDE_DIR
   used as include directory in directory /home/yecinem/fcl/src

-- Configuring incomplete, errors occurred!
See also "/home/yecinem/fcl/build/CMakeFiles/CMakeOutput.log".
CMake Warning:
  Value of fcl_headers contained a newline; truncating 

Hi!

Did you install Eigen systemwide?
If your os cannot find it, just run ccmake … (two dots) in the build folder and specify the path to Eigen manually.
Alternatively, change to set(CMAKE_MODULE_PATH /usr/local/lib/cmake) in CMakeLists.txt in the beginning of the file, after installing Eigen.
What is your OS?

Or the easiest option - just specify cmake -DEIGEN3_INCLUDE_DIR=/path/to/eigen3 [other options]

Welcome to C++ programming!

1 Like

That fixed it, thanks!