mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 11:38:08 +00:00
Fix Windows build (do not error on deprecated function warnings).
This commit is contained in:
parent
5500c7455d
commit
423aa9dd57
1 changed files with 1 additions and 3 deletions
|
|
@ -247,6 +247,7 @@ set(STRICT_OPTIONS_CXX )
|
|||
set(STRICT_OPTIONS_OBJC )
|
||||
if(MSVC)
|
||||
list(APPEND STRICT_OPTIONS_CPP "/wd4995") # Disable "name was marked as #pragma deprecated" warnings
|
||||
list(APPEND STRICT_OPTIONS_CPP "/wd4996") # Disable deprecated function warnings
|
||||
if(ENABLE_STRICT)
|
||||
list(APPEND STRICT_OPTIONS_CPP "/WX")
|
||||
endif()
|
||||
|
|
@ -267,9 +268,6 @@ else()
|
|||
list(APPEND STRICT_OPTIONS_CPP "-Werror" "-Wextra" "-Wno-unused-parameter" "-Wno-missing-field-initializers" "-fno-strict-aliasing")
|
||||
endif()
|
||||
endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
|
||||
list(APPEND STRICT_OPTIONS_CPP "/wd4996")
|
||||
endif()
|
||||
if(STRICT_OPTIONS_CPP)
|
||||
list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue