From cd9f9e8b949e58b8f7c3f608b04c38e01576d223 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Mon, 29 Apr 2019 09:56:29 +0200 Subject: [PATCH] [CMAKE] Globally enable secure CRT functions "This is what Windows does" (tm) --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7bf0a55574..52193933fa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -167,7 +167,8 @@ else() -D_WIN32_IE=0x600 -D_WIN32_WINNT=0x502 -D_WIN32_WINDOWS=0x502 - -D_SETUPAPI_VER=0x502) + -D_SETUPAPI_VER=0x502 + -DMINGW_HAS_SECURE_API=1) # Arch Options if(ARCH STREQUAL "i386")