From 61687840bcc40b641f9130adcae5a36d4f570391 Mon Sep 17 00:00:00 2001 From: James Date: Mon, 21 Nov 2016 18:21:36 +1100 Subject: [PATCH] Disable Microprofile on Mingw builds This fixes a crash when starting games --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 33d18f5ea..25631b32e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -71,6 +71,9 @@ if (NOT MSVC) if (MINGW) add_definitions(-DMINGW_HAS_SECURE_API) + # Microprofile causes crashes when launching titles on MinGW + add_definitions(-DMICROPROFILE_ENABLED=0) + if (MINGW_STATIC_BUILD) add_definitions(-DQT_STATICPLUGIN) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static")