From cb74dd99efd69c0a1dae9be31edef35436146982 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 9 Oct 2013 15:54:56 +0200 Subject: [PATCH] - MSVC Release also needs the /Oi option for best performance. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fb335c1f1..f929ee11d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,7 +65,7 @@ if( MSVC ) set( ALL_C_FLAGS "/GF /Gy /GR- /fp:fast" ) # Avoid CRT DLL dependancies in release builds - set( REL_C_FLAGS "/MT" ) + set( REL_C_FLAGS "/MT /Oi" ) # Debug allocations in debug builds set( DEB_C_FLAGS "/D _CRTDBG_MAP_ALLOC" )