diff options
author | John Smith <hauke.heibel@gmail.com> | 2009-08-28 20:14:18 +0200 |
---|---|---|
committer | John Smith <hauke.heibel@gmail.com> | 2009-08-28 20:14:18 +0200 |
commit | aacada166263dd8022643d5c224b796701eba2c4 (patch) | |
tree | b9b4ab9c04d0cc75e14c9d4ee831a85df55cb4d9 /cmake | |
parent | 227f6cbce08b5dbd6f49224857c70b78380fbb73 (diff) |
Force release builds on Windows machines in the test suite.
Added an IGNORE_CVS flag to the test suite (allows submitting local and modified repositories).
Fixed the EI_OFLAG for MSVC.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/EigenTesting.cmake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 571774787..e3a87f645 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -160,11 +160,9 @@ 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") -# 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") +elseif(MSVC) + set(CMAKE_CXX_FLAGS_DEBUG "/D_DEBUG /MDd /Zi /Ob0 /Od" CACHE STRING "Flags used by the compiler during debug builds." FORCE) + set(EI_OFLAG "/O2") else(CMAKE_COMPILER_IS_GNUCXX) set(EI_OFLAG "") endif(CMAKE_COMPILER_IS_GNUCXX) |