From 34e699687db14c9d94ec1278f734243e5c7f6ca4 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 12 Aug 2025 12:41:12 +0500 Subject: [PATCH] cmake - ensure EIGEN_DIR is provided --- cmake/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 1fdc77a362..4fa910e000 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -778,6 +778,13 @@ else() endif() endif(MSVC) + +# Ensure other dependencies are provided. +if(NOT EIGEN_DIR OR NOT EXISTS "${EIGEN_DIR}") + message(FATAL_ERROR "EIGEN_DIR is not provided or provided folder doesn't exist (current value: '${EIGEN_DIR}').") +endif() + + include_directories(${INCLUDE_DIRECTORIES} ${OCC_INCLUDE_DIR} ${OPENCOLLADA_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} ${JSON_INCLUDE_DIR} ${HDF5_INCLUDE_DIR} ${EIGEN_DIR} ${CGAL_INCLUDE_DIR} ${GMP_INCLUDE_DIR} ${MPFR_INCLUDE_DIR} ${USD_INCLUDE_DIR}