From 6b51540419b84d1a11934789218bba622c60b35b Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Sun, 6 Aug 2017 06:19:47 -0700 Subject: [PATCH] Add --expt-relaxed-constexpr to surppress Eigen warnings --- cmake/flags.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index d00a9bb3a30..065325d7956 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -115,7 +115,8 @@ set(COMMON_FLAGS -Wno-error=literal-suffix -Wno-error=sign-compare -Wno-error=unused-local-typedefs - -Wno-error=parentheses-equality # Warnings in Pybind11 + -Wno-error=parentheses-equality # Warnings in pybind11 + --expt-relaxed-constexpr # surppress warnings in Eigen ) set(GPU_COMMON_FLAGS @@ -130,6 +131,7 @@ set(GPU_COMMON_FLAGS -Wno-error=unused-local-typedefs -Wno-error=unused-function # Warnings in Numpy Header. -Wno-error=array-bounds # Warnings in Eigen::array + --expt-relaxed-constexpr # surppress warnings in Eigen ) if (APPLE) -- GitLab