From 9bc1b78058911b538166e3fe658ea86fe10da213 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Sun, 17 May 2015 13:59:31 +0100 Subject: [PATCH] MSVC: Don't use GCC -O/-g flags. #3267 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b83b56f75..c18d8982e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,7 +161,7 @@ endif() if(HAS_OG_FLAG) set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Og -g" CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE) -else() +elseif(NOT MSVC) set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g" CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE) endif()