Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
43c69dc4
Commit
43c69dc4
authored
Jul 24, 2017
by
Ghislain MARY
Browse files
Set correct compilation flags for clang.
parent
0f20b435
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+2
-2
No files found.
CMakeLists.txt
View file @
43c69dc4
...
...
@@ -271,10 +271,10 @@ else()
if
(
CMAKE_C_COMPILER_ID STREQUAL
"GNU"
)
list
(
APPEND STRICT_OPTIONS_C
"-fno-inline-small-functions"
)
endif
()
if
(
CMAKE_C_COMPILER_ID
STREQUAL
"Clang"
)
if
(
CMAKE_C_COMPILER_ID
MATCHES
"Clang"
)
list
(
APPEND STRICT_OPTIONS_CPP
"-Qunused-arguments"
"-Wno-array-bounds"
)
endif
()
if
(
CMAKE_CXX_COMPILER_ID
STREQUAL
"Clang"
)
if
(
CMAKE_CXX_COMPILER_ID
MATCHES
"Clang"
)
list
(
APPEND STRICT_OPTIONS_CXX
"-x c++"
)
endif
()
if
(
APPLE
)
...
...
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