Просмотр исходного кода

Disable Microprofile on Mingw builds
This fixes a crash when starting games

James 9 лет назад
Родитель
Сommit
61687840bc
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      CMakeLists.txt

+ 3 - 0
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")