Commit bdaac0ea authored by Ghislain MARY's avatar Ghislain MARY

Hide some compilation warnings on Windows.

parent fb685095
......@@ -67,7 +67,7 @@ if(APPLE)
set(CMAKE_MACOSX_RPATH 1)
endif()
if(WIN32)
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0600 -D_ALLOW_KEYWORD_MACROS")
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0600 -D_ALLOW_KEYWORD_MACROS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS")
endif()
# Adjust PKG_CONFIG_PATH to include install directory
......
......@@ -65,7 +65,7 @@ if (UNIX)
endif()
endif()
if(WIN32)
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0501 -D_ALLOW_KEYWORD_MACROS")
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0501 -D_ALLOW_KEYWORD_MACROS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS")
endif()
......
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