summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-05-04 02:06:55 -0400
committerLioncash <mathew1800@gmail.com>2019-05-04 02:06:56 -0400
commit5d0dca73c61b5f90f8666dc7f841f4530288c262 (patch)
treedbf91133b6e6eabb22341484510f51b22d035e2b /src
parent1f72bb733f743d55ac890c990f0fefea9a0ef290 (diff)
CMakeLists: Explicitly specify -Wall for the non-MSVC case
Ensures that -Wall is always active as a compilation flag.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9aea4af87..1918aa731 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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++")