Restore EIGEN_INCLUDE_DIR in CMake again (for 3.4.x)

This commit is contained in:
Alexander Vieth
2025-08-18 19:53:08 +00:00
committed by Antonio Sánchez
parent eb57d4bdf1
commit cd7263e7f6
2 changed files with 20 additions and 1 deletions

View File

@@ -1,6 +1,20 @@
# -*- cmake -*-
#
# UseEigen3.cmake
#
# ----------------------------------------------------------------------
# This file provides legacy support for including Eigen in CMake.
# The modern and preferred way is to use:
#
# find_package (Eigen3 3.4 REQUIRED NO_MODULE)
# add_executable (example example.cpp)
# target_link_libraries (example Eigen3::Eigen)
#
# Use the commands below only if you must maintain compatibility
# with older CMake/Eigen projects.
# For more information:
# https://libeigen.gitlab.io/eigen/docs-3.4/TopicCMakeGuide.html
# ----------------------------------------------------------------------
add_definitions ( ${EIGEN3_DEFINITIONS} )
include_directories ( ${EIGEN3_INCLUDE_DIRS} )