From fd5362e9680664a1426f812aa2ad511c33a20cc0 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 22 Aug 2016 09:25:30 -0400 Subject: [PATCH] CMakeLists: Invert if statement Same thing, less wordy. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5956cd0..30123a0c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,14 +17,14 @@ set(CMAKE_WARN_DEPRECATED ON) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) # Compiler flags -if (NOT MSVC) +if (MSVC) + add_compile_options(/W3 /MP /Zi /Zo /EHsc /WX) +else() add_compile_options(-Wall -Werror -Wextra -pedantic -pedantic-errors -Wfatal-errors -Wno-unused-parameter -Wno-missing-braces) if (ARCHITECTURE_x86_64) add_compile_options(-msse4.1) endif() -else() - add_compile_options(/W3 /MP /Zi /Zo /EHsc /WX) endif() # Arch detection