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
ddd78715
Commit
ddd78715
authored
Jun 15, 2016
by
Ghislain MARY
Browse files
Correctly apply compile flags when building with Visual Studio.
parent
787be235
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/CMakeLists.txt
View file @
ddd78715
...
...
@@ -156,7 +156,9 @@ if(BELLE_SIP_SOURCE_FILES_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
get_source_file_property
(
DNS_C_COMPILE_FLAGS dns.c COMPILE_FLAGS
)
set
(
DNS_C_COMPILE_FLAGS
"
${
DNS_C_COMPILE_FLAGS
}
/wd4267"
)
# Disable "possible loss of data" warnings
set_source_files_properties
(
dns.c PROPERTIES COMPILE_FLAGS
"
${
DNS_C_COMPILE_FLAGS
}
"
)
endif
()
string
(
REPLACE
";"
" "
LINK_FLAGS_STR
"
${
LINK_FLAGS
}
"
)
...
...
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