Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AUSA
AUSAlib
Commits
0293c1a3
Commit
0293c1a3
authored
Sep 28, 2016
by
Munken
Browse files
Treat all compiler warnings as errors
parent
c47d64da
Pipeline
#15614
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
0293c1a3
...
...
@@ -190,9 +190,9 @@ if(MSVC)
else
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
/W4"
)
endif
()
elseif
(
CMAKE_COMPILER_IS_GNUC
C
OR CMAKE_COMPILER_I
S_GNUCXX
)
elseif
(
CMAKE_COMPILER_IS_GNUC
XX
OR CMAKE_
CXX_
COMPILER_I
D MATCHES
"Clang"
)
# Update if necessary
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall -Wno-sign-compare -Wno-reorder"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wall
-Werror
-Wno-sign-compare -Wno-reorder"
)
endif
()
CHECK_CXX_COMPILER_FLAG
(
"-stdlib=libc++"
COMPILER_SUPPORTS_LIBCPP
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment