diff --git a/cmake/external/eigen.cmake b/cmake/external/eigen.cmake index 339cded091b29..95dd438702a18 100644 --- a/cmake/external/eigen.cmake +++ b/cmake/external/eigen.cmake @@ -15,6 +15,7 @@ else () eigen URL ${DEP_URL_eigen} URL_HASH SHA1=${DEP_SHA1_eigen} + PATCH_COMMAND ${Patch_EXECUTABLE} --binary --ignore-whitespace -p1 < ${PROJECT_SOURCE_DIR}/patches/eigen/eigen-edge.patch ) endif() diff --git a/cmake/patches/eigen/eigen-edge.patch b/cmake/patches/eigen/eigen-edge.patch new file mode 100644 index 0000000000000..d8dc850b4bd55 --- /dev/null +++ b/cmake/patches/eigen/eigen-edge.patch @@ -0,0 +1,13 @@ +diff --git a/Eigen/src/Core/util/IndexedViewHelper.h b/Eigen/src/Core/util/IndexedViewHelper.h +index f85de305f..3dc2bb5e7 100644 +--- a/Eigen/src/Core/util/IndexedViewHelper.h ++++ b/Eigen/src/Core/util/IndexedViewHelper.h +@@ -178,7 +178,7 @@ namespace placeholders { + + EIGEN_DEPRECATED static const all_t all = Eigen::all; // PLEASE use Eigen::all instead of Eigen::placeholders::all + EIGEN_DEPRECATED static const last_t last = Eigen::last; // PLEASE use Eigen::last instead of Eigen::placeholders::last +- EIGEN_DEPRECATED static const end_t end = Eigen::lastp1; // PLEASE use Eigen::lastp1 instead of Eigen::placeholders::end ++ // EIGEN_DEPRECATED static const end_t end = Eigen::lastp1; // PLEASE use Eigen::lastp1 instead of Eigen::placeholders::end + } + + } // end namespace Eigen