mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-17 02:15:22 +02:00
Disable CRT security warnings in MSVC (#15077)
MSVC by default warns if Annex-K style secure functions with additional parameter validation are not used. For better or worse, afaik other major compilers don't implement it, so it's not a very useful warning for a cross-platform project.
This commit is contained in:
@@ -22,6 +22,10 @@ else()
|
||||
set(DEFAULT_ANSI TRUE)
|
||||
endif()
|
||||
|
||||
if(MSVC)
|
||||
set(COMMON_CFLAGS "${COMMON_CFLAGS} -D_CRT_SECURE_NO_WARNINGS")
|
||||
endif()
|
||||
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||
set(COMMON_LDFLAGS "${COMMON_LDFLAGS} -Wl,-E -lm")
|
||||
set(DEFAULT_DLOPEN ON)
|
||||
|
Reference in New Issue
Block a user