aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2009-02-06 15:29:40 +0000
committerGravatar Gael Guennebaud <g.gael@free.fr>2009-02-06 15:29:40 +0000
commit1c24f5bbc550251e42bca7b48b063af71311ee58 (patch)
tree9797dfa3959c33e2aa5076ca0682c3fa3a178abb /test
parent19b035ee11093965387833ea7baece5e8f571602 (diff)
eventually MSVC does not like my /O2 flags (incompatibility with other option set by default)
Diffstat (limited to 'test')
-rw-r--r--test/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index ba6eff8cf..45c90f03b 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -83,8 +83,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g2")
endif(CMAKE_SYSTEM_NAME MATCHES Linux)
set(EI_OFLAG "-O2")
-elseif(MSVC)
- set(EI_OFLAG "/O2")
+# MSVC fails with:
+# cl : Command line warning D9025 : overriding '/Od' with '/O2'
+# cl : Command line error D8016 : '/RTC1' and '/O2' command-line options are incompatible
+# elseif(MSVC)
+# set(EI_OFLAG "/O2")
else(CMAKE_COMPILER_IS_GNUCXX)
set(EI_OFLAG "")
endif(CMAKE_COMPILER_IS_GNUCXX)