build-all.py - use find_package for eigen3

This commit is contained in:
Andrej730
2025-09-18 12:35:30 +05:00
parent 4d0737c49b
commit 235eb3c83c
2 changed files with 15 additions and 4 deletions
+3 -1
View File
@@ -863,7 +863,9 @@ endif(MSVC)
# Ensure other dependencies are provided.
if(NOT EXISTS "${EIGEN_DIR}")
find_package(Eigen3 CONFIG)
if(NOT Eigen3_DIR)
if(Eigen3_DIR)
message(STATUS "Eigen3: found config at '${Eigen3_DIR}'.")
else()
message(
FATAL_ERROR
"EIGEN_DIR is not provided or provided folder doesn't exist (current value: '${EIGEN_DIR}'). "