add _WIN32_WINNT and move CRT no warnings flag

This commit is contained in:
Lion Kortlepel 2022-10-17 12:25:13 +02:00
parent 4256977400
commit 88c0ed56e4
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -139,9 +139,12 @@ set(BeamMP_Includes
set(BeamMP_Definitions
SECRET_SENTRY_URL="${BEAMMP_SECRET_SENTRY_URL}"
_CRT_SECURE_NO_WARNINGS
)
if (WIN32)
list(APPEND BeamMP_Definitions _WIN32_WINNT=0x0601)
list(APPEND BeamMP_Definitions _CRT_SECURE_NO_WARNINGS)
endif()
if (UNIX)
set(BeamMP_CompileOptions
-Wall