Android: Fix building with Eigen via the NDK
Eigen is a header only library, thus is it safe to use a system
copy when cross compiling. Eigen does not exist in the ndk sysroot.
@@ -27,7 +27,7 @@ option(DOWNLOAD_EIGEN "Download eigen if it isn't installed on the system" OFF)
option(USE_EIGEN "Use eigen for math operations" DOWNLOAD_EIGEN)
option(USE_COLUMN_MAJOR_MATRICES "Use column major matrices for math operations" OFF)
-find_package (Eigen3 3 NO_MODULE)
+find_package (Eigen3 3 NO_MODULE NO_CMAKE_FIND_ROOT_PATH)
if(NOT EIGEN3_FOUND)
if(DOWNLOAD_EIGEN)
find_program(GIT git)
