forked from ShuriZma/suyu
1
0
Fork 0

CMakeLists: Explicitly specify -Wall for the non-MSVC case

Ensures that -Wall is always active as a compilation flag.
This commit is contained in:
Lioncash 2019-05-04 02:06:55 -04:00
parent 1f72bb733f
commit 5d0dca73c6
No known key found for this signature in database
GPG Key ID: 4E3C3CC1031BA9C7
1 changed files with 4 additions and 1 deletions

View File

@ -37,7 +37,10 @@ if (MSVC)
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG /MANIFEST:NO" CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
else()
add_compile_options("-Wno-attributes")
add_compile_options(
-Wall
-Wno-attributes
)
if (APPLE AND CMAKE_CXX_COMPILER_ID STREQUAL Clang)
add_compile_options("-stdlib=libc++")