From 227f6cbce08b5dbd6f49224857c70b78380fbb73 Mon Sep 17 00:00:00 2001 From: John Smith Date: Fri, 28 Aug 2009 00:05:44 +0200 Subject: Fixed SSE related build warning on 64-bit windows systems. --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d06f616a..c229a2858 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -94,7 +94,10 @@ if(MSVC) option(EIGEN_TEST_SSE2 "Enable/Disable SSE2 in tests/examples" OFF) if(EIGEN_TEST_SSE2) - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2") + if(NOT CMAKE_CL_64) + # arch is not supported on 64 bit systems, SSE is enabled automatically. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2") + endif(NOT CMAKE_CL_64) message("Enabling SSE2 in tests/examples") endif(EIGEN_TEST_SSE2) endif(MSVC) -- cgit v1.2.3