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
belle-sip
Commits
5650d325
Commit
5650d325
authored
Jun 14, 2016
by
Ghislain MARY
Browse files
Activate error on warning when building with Visual Studio.
parent
e2e516dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
5650d325
...
...
@@ -177,7 +177,13 @@ add_definitions("-DHAVE_CONFIG_H")
set
(
STRICT_OPTIONS_CPP
)
set
(
STRICT_OPTIONS_C
)
set
(
STRICT_OPTIONS_OBJC
"-fmodules"
)
if
(
NOT MSVC
)
if
(
MSVC
)
list
(
APPEND STRICT_OPTIONS_CPP
"/wd4068"
)
# Disable "unknown pragma" warnings from antlr
list
(
APPEND STRICT_OPTIONS_CPP
"/wd4129"
)
# Disable "unrecognized character escape sequence" warnings from antlr
if
(
ENABLE_STRICT
)
list
(
APPEND STRICT_OPTIONS_CPP
"/WX"
)
endif
()
else
()
list
(
APPEND STRICT_OPTIONS_CPP
"-Wall"
"-Wuninitialized"
"-Wno-error=deprecated-declarations"
)
if
(
CMAKE_C_COMPILER_ID STREQUAL
"Clang"
)
list
(
APPEND STRICT_OPTIONS_CPP
"-Wno-error=unknown-warning-option"
"-Qunused-arguments"
"-Wno-tautological-compare"
"-Wno-builtin-requires-header"
"-Wno-unused-function"
"-Wno-gnu-designator"
"-Wno-array-bounds"
)
...
...
src/CMakeLists.txt
View file @
5650d325
...
...
@@ -155,6 +155,9 @@ if(BELLE_SIP_SOURCE_FILES_CXX)
set_source_files_properties
(
${
BELLE_SIP_SOURCE_FILES_CXX
}
PROPERTIES LANGUAGE CXX
)
apply_compile_flags
(
BELLE_SIP_SOURCE_FILES_CXX
"CPP"
"CXX"
)
endif
()
if
(
MSVC
)
set_source_files_properties
(
dns.c PROPERTIES COMPILE_FLAGS
"/wd4267"
)
# Disable "possible loss of data" warnings
endif
()
string
(
REPLACE
";"
" "
LINK_FLAGS_STR
"
${
LINK_FLAGS
}
"
)
if
(
ENABLE_STATIC
)
...
...
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