CMake: Compile fix for MinGW 8.1.0

Change-Id: I4e484619421812ae83da1382938c527ad67382e9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Cristian Adam 2019-06-05 16:18:07 +02:00
parent 04da0df568
commit 2fb7cca6ba

View File

@ -509,6 +509,15 @@ extend_target(Gui CONDITION QT_FEATURE_png
PNG::PNG
)
# special case begin
if (MINGW AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 8.1.0)
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86048
set_source_files_properties(image/qpnghandler.cpp
PROPERTIES COMPILE_OPTIONS -fno-reorder-blocks-and-partition
)
endif()
# special case end
extend_target(Gui CONDITION QT_FEATURE_harfbuzz
SOURCES
text/qharfbuzzng.cpp text/qharfbuzzng_p.h