Closed ghost closed 4 years ago
Can you check why it locates the path to "D://include/eigen3/Eigen"? I think the FindEigen.cmake is a standard file and should not be casually changed.
I changed line 115 in FindEigen.cmake to set(EIGEN_PREFER_EXPORTED_EIGEN_CMAKE_CONFIGURATION FALSE) and it fixed this issue for me
I also added a custom path to the list at line 190, however I am not sure this is necessary
Following are the error messages when I ran
cmake -G"Visual Studio 14 2015 Win64" ..
:The cmake script has successfully found the exported Eigen build directory, but it seems that it then failed to assemble the correct path to Macros.h according to that. The root folder of Eigen is one level above the build directory, i.e.,
D:/3rd-parties/eigen-3.3.7
. As a result, the correct filepath should beD:/3rd-parties/eigen-3.3.7/Eigen/src/Core/util/Macros.h
, notD://include/eigen3/Eigen/...
. So, could you please fix this issue inFindEigen.cmake
? Thanks a lot.My environment: