aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Abreu Ferreira <raf-ep@gmx.com>2015-05-17 13:59:31 +0100
committerJustin M. Keyes <justinkz@gmail.com>2015-08-31 02:51:49 -0400
commit9bc1b78058911b538166e3fe658ea86fe10da213 (patch)
treefe6ee12a2f1167e2004a789718cb69b442c9eedc
parentacdac914d554fae421c4e71c9d1dffc5cea4505b (diff)
downloadrneovim-9bc1b78058911b538166e3fe658ea86fe10da213.tar.gz
rneovim-9bc1b78058911b538166e3fe658ea86fe10da213.tar.bz2
rneovim-9bc1b78058911b538166e3fe658ea86fe10da213.zip
MSVC: Don't use GCC -O/-g flags. #3267
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
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()