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")