CMakeLists: Invert if statement

Same thing, less wordy.
This commit is contained in:
Lioncash 2016-08-22 09:25:30 -04:00 committed by MerryMage
parent 723ce801c6
commit fd5362e968

View file

@ -17,14 +17,14 @@ set(CMAKE_WARN_DEPRECATED ON)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules)
# Compiler flags # 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 add_compile_options(-Wall -Werror -Wextra -pedantic -pedantic-errors -Wfatal-errors
-Wno-unused-parameter -Wno-missing-braces) -Wno-unused-parameter -Wno-missing-braces)
if (ARCHITECTURE_x86_64) if (ARCHITECTURE_x86_64)
add_compile_options(-msse4.1) add_compile_options(-msse4.1)
endif() endif()
else()
add_compile_options(/W3 /MP /Zi /Zo /EHsc /WX)
endif() endif()
# Arch detection # Arch detection