From ddcda555e7a3f0d774aef7fd5e955ef1c3b43ddd Mon Sep 17 00:00:00 2001 From: McCabe Maxsted Date: Mon, 30 Mar 2009 02:15:45 -0700 Subject: Added VS optimizations to cmake --- linden/indra/cmake/00-Common.cmake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linden/indra/cmake/00-Common.cmake') diff --git a/linden/indra/cmake/00-Common.cmake b/linden/indra/cmake/00-Common.cmake index c41591f..0866a32 100644 --- a/linden/indra/cmake/00-Common.cmake +++ b/linden/indra/cmake/00-Common.cmake @@ -57,6 +57,13 @@ if (WINDOWS) /Zc:wchar_t- ) endif (MSVC80 OR MSVC90) + + # VS optimization flags + if(MSVC80) + set(CMAKE_CXX_FLAGS_RELEASE + "${CMAKE_CXX_FLAGS_RELEASE} /Ob2 /Oi /Ot /GT" + CACHE STRING "C++ compiler release options" FORCE) + endif (MSVC80) # Are we using the crummy Visual Studio KDU build workaround? if (NOT VS_DISABLE_FATAL_WARNINGS) -- cgit v1.1