diff --git a/CMakeLists.txt b/CMakeLists.txt index 5926f471d..0da9118dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -261,6 +261,11 @@ IF(MSVC) ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS) ENDIF() +# Support ANSI format specifiers for *printf on MINGW: +IF(MINGW) + ADD_DEFINITIONS(-D__USE_MINGW_ANSI_STDIO=1) +ENDIF() + ##### # System inspection checks #####