aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar John Smith <hauke.heibel@gmail.com>2009-08-28 00:05:44 +0200
committerGravatar John Smith <hauke.heibel@gmail.com>2009-08-28 00:05:44 +0200
commit227f6cbce08b5dbd6f49224857c70b78380fbb73 (patch)
tree27779183dfe86ba3b4f7c2a64c07f4ed4aed872f
parent76fa46c6db95a1563076e8bda2c96bd69f4a4adf (diff)
Fixed SSE related build warning on 64-bit windows systems.
-rw-r--r--CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
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)