mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Add more defs for clang-cl to suppress API deprecation warnings
This commit is contained in:
parent
4f7f0587b2
commit
b9a8e355d3
1 changed files with 6 additions and 2 deletions
|
|
@ -445,8 +445,12 @@ if (NOT SRB2_CONFIG_FORCE_NO_MS_BITFIELDS)
|
|||
endif()
|
||||
|
||||
# Yes we know we use insecure CRT functions...
|
||||
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
target_compile_definitions(SRB2SDL2 PRIVATE -D_CRT_SECURE_NO_WARNINGS)
|
||||
if(WIN32 OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
|
||||
target_compile_definitions(SRB2SDL2 PRIVATE
|
||||
-D_CRT_SECURE_NO_WARNINGS
|
||||
-D_CRT_NONSTDC_NO_WARNINGS
|
||||
-D_WINSOCK_DEPRECATED_NO_WARNINGS
|
||||
)
|
||||
endif()
|
||||
|
||||
# Compiler warnings configuration
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue