diff options
author | Gael Guennebaud <g.gael@free.fr> | 2009-02-05 22:13:50 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2009-02-05 22:13:50 +0000 |
commit | dc9707990553566d7ac5d42fa79839812470f842 (patch) | |
tree | a233698d9820aba36592b82e6269632d00eb0c58 /test | |
parent | a4487ef19820754429bf9a76bbe567a8c7588f32 (diff) |
add optimization flag for MSVC and heavy tests
remove unsupported namespace
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 01bb721a3..c0dcdccd0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -83,6 +83,8 @@ 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") else(CMAKE_COMPILER_IS_GNUCXX) set(EI_OFLAG "") endif(CMAKE_COMPILER_IS_GNUCXX) |