Commit ddd78715 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Correctly apply compile flags when building with Visual Studio.

parent 787be235
......@@ -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}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment