Commit 5237e84e authored by Ghislain MARY's avatar Ghislain MARY

Attempt to fix build with Visual Studio 2010.

parent e3fc561d
......@@ -67,7 +67,10 @@ if(APPLE)
set(CMAKE_MACOSX_RPATH 1)
endif()
if(WIN32)
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0600 -D_ALLOW_KEYWORD_MACROS -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS")
set(LINPHONE_BUILDER_CPPFLAGS "-D_WIN32_WINNT=0x0600 -D_CRT_SECURE_NO_WARNINGS -D_WINSOCK_DEPRECATED_NO_WARNINGS")
if(MSVC AND MSVC_VERSION GREATER 1600) # Visual Studio 2010 defines this macro itself
set(LINPHONE_BUILDER_CPPFLAGS "${LINPHONE_BUILDER_CPPFLAGS} -D_ALLOW_KEYWORD_MACROS")
endif()
endif()
# Adjust PKG_CONFIG_PATH to include install directory
......
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