Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akonadi
Commits
910df6e2
Commit
910df6e2
authored
Sep 15, 2020
by
Hannah von Reth
Browse files
Never assume clang flags based on the version
parent
ba26c693
Pipeline
#34365
passed with stage
in 14 minutes and 17 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
910df6e2
...
...
@@ -254,7 +254,8 @@ set_default_db_backend(${DATABASE_BACKEND})
if
(
CMAKE_COMPILER_IS_GNUCXX OR CMAKE_C_COMPILER MATCHES
"icc"
OR
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
))
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
-Wno-long-long -std=iso9899:1990 -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wnon-virtual-dtor -Wundef -Wcast-align -Wchar-subscripts -Wall -Wextra -Wpointer-arith -Wformat-security -fno-common -pedantic"
)
if
((
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
AND
(
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 10
))
CHECK_CXX_COMPILER_FLAG
(
-Wno-deprecated-copy NO_DEPRECATED_COPY
)
if
(
NO_DEPRECATED_COPY
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-Wno-deprecated-copy"
)
endif
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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