From 06fc5761fadef1c9c67efd817f34c21cc0e44f57 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Fri, 20 Jul 2018 17:51:17 +0200 Subject: [PATCH] Oopps, EIGEN_COMP_MSVC is not available before including Eigen. (grafted from de70671937827dd61a63d2432e0bea4ca7b00300 ) --- test/sparse_product.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sparse_product.cpp b/test/sparse_product.cpp index 40b81ffb4..7f77bb742 100644 --- a/test/sparse_product.cpp +++ b/test/sparse_product.cpp @@ -7,7 +7,7 @@ // Public License v. 2.0. If a copy of the MPL was not distributed // with this file, You can obtain one at http://mozilla.org/MPL/2.0/. -#if EIGEN_COMP_MSVC==1800 +#if defined(_MSC_VER) && (_MSC_VER==1800) // This unit test takes forever to compile in Release mode with MSVC 2013, // multiple hours. So let's switch off optimization for this one. #pragma optimize("",off)