diff options
-rw-r--r-- | test/CMakeLists.txt | 7 |
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) |