Skip to content

Commit 34e6996

Browse files
committed
cmake - ensure EIGEN_DIR is provided
1 parent 63f7315 commit 34e6996

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmake/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,13 @@ else()
778778
endif()
779779
endif(MSVC)
780780

781+
782+
# Ensure other dependencies are provided.
783+
if(NOT EIGEN_DIR OR NOT EXISTS "${EIGEN_DIR}")
784+
message(FATAL_ERROR "EIGEN_DIR is not provided or provided folder doesn't exist (current value: '${EIGEN_DIR}').")
785+
endif()
786+
787+
781788
include_directories(${INCLUDE_DIRECTORIES} ${OCC_INCLUDE_DIR} ${OPENCOLLADA_INCLUDE_DIRS}
782789
${Boost_INCLUDE_DIRS} ${LIBXML2_INCLUDE_DIR} ${JSON_INCLUDE_DIR} ${HDF5_INCLUDE_DIR}
783790
${EIGEN_DIR} ${CGAL_INCLUDE_DIR} ${GMP_INCLUDE_DIR} ${MPFR_INCLUDE_DIR} ${USD_INCLUDE_DIR}

0 commit comments

Comments
 (0)