diff options
author | Cristian Adam <cristian.adam@qt.io> | 2019-06-05 16:18:07 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2019-06-05 14:31:51 +0000 |
commit | 2fb7cca6ba566e28f4fdad5259dc420fa84759f2 (patch) | |
tree | 6bd35077a839bf5c5f71e9fe2d9f36c66f064d2a /src | |
parent | 04da0df56851565fe93f69be72efbba2b492d5db (diff) |
CMake: Compile fix for MinGW 8.1.0
Change-Id: I4e484619421812ae83da1382938c527ad67382e9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt index 745e4b45f7..635af4faf4 100644 --- a/src/gui/CMakeLists.txt +++ b/src/gui/CMakeLists.txt @@ -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 |