diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index dabeb3642f..e10d2cd1fa 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -73,11 +73,16 @@ if( WIN32 ) dwmapi ) + if( NOT MINGW ) + list( APPEND PROJECT_LIBRARIES legacy_stdio_definitions ) + endif() + if( DEM_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE ) if( DX_dxguid_LIBRARY ) list( APPEND PROJECT_LIBRARIES "${DX_dxguid_LIBRARY}" ) endif() endif() + else() if( APPLE ) set( NO_GTK ON )