diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index bf9d0e71f1..45ca061ed7 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -829,7 +829,7 @@ qt_feature("ico" PUBLIC PRIVATE qt_feature_definition("ico" "QT_NO_ICO" NEGATE VALUE "1") qt_feature("jpeg" PRIVATE LABEL "JPEG" - CONDITION QT_FEATURE_imageformatplugin AND JPEG_FOUND + CONDITION QT_FEATURE_imageformatplugin DISABLE INPUT_libjpeg STREQUAL 'no' ) qt_feature_definition("jpeg" "QT_NO_IMAGEFORMAT_JPEG" NEGATE) diff --git a/util/cmake/configurejson2cmake.py b/util/cmake/configurejson2cmake.py index afee5156a0..31a0dda7dc 100755 --- a/util/cmake/configurejson2cmake.py +++ b/util/cmake/configurejson2cmake.py @@ -794,7 +794,6 @@ def get_feature_mapping(): "condition": "NOT QT_FEATURE_icu AND QT_FEATURE_textcodec AND ( TEST_posix_iconv OR TEST_sun_iconv )" }, "incredibuild_xge": None, - "jpeg": {"condition": "QT_FEATURE_imageformatplugin AND JPEG_FOUND"}, "ltcg": None, "msvc_mp": None, "optimize_debug": None,