add optimization flag for MSVC and heavy tests

remove unsupported namespace
This commit is contained in:
Gael Guennebaud
2009-02-05 22:13:50 +00:00
parent a4487ef198
commit dc97079905
3 changed files with 3 additions and 6 deletions

View File

@@ -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)