qt5base-lts/util/cmake
Simon Hausmann 8c60782124 Fix XCB feature detection
The xcb feature controls whether to build the xcb platform plugin. The
feature depends among other things on

    qt_find_package(XCB 1.9 PROVIDED_TARGETS XCB::XCB)

to succeed. This means at the moment setting XCB_FOUND to true, that's
what the condition checks.

Later on, in configure.cmake, we also check for other components in the
XCB package, for example:

    qt_find_package(XCB COMPONENTS XINPUT PROVIDED_TARGETS XCB::XINPUT)

If this component is not available, the xcb platform plugin has perhaps
reduce functionality, but it should be built and the feature should be
abled. However it isn't, because when that find_package call fails,
XCB_FOUND will be set to false. And that in turn will disable the
feature as the condition fails.

Therefore this patch changes the condition to check for the presence of
the XCB::XCB target instead.

Change-Id: I534087d8c3b7ff5edf81a5ffcf16cc0bb78b9fb7
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
2019-06-26 09:07:20 +00:00
..
tests Fix comment fixup in pro2cmake 2019-06-06 08:38:08 +00:00
cmakeconversionrate.py
configurejson2cmake.py Fix some configure.json conditions for qtimageformats 2019-06-06 06:59:48 +00:00
generate_module_map.sh
helper.py Fix XCB feature detection 2019-06-26 09:07:20 +00:00
json_parser.py Improve configurejson2cmake.py to handle non-compliant qmake JSON 2019-05-27 07:48:51 +00:00
Pipfile CMake: pro2cmake.py: Simplify conditions 2019-01-29 09:29:38 +00:00
pro2cmake.py Android: Final changes for APK generation 2019-06-26 08:34:37 +00:00
pro_conversion_rate.py Add script to print out list of unconverted .pro files 2019-04-08 14:53:46 +00:00
run_pro2cmake.py Improve run_pro2cmake.py 2019-06-05 07:41:46 +00:00
special_case_helper.py Improve special case handler to work on Windows 2019-06-11 14:09:54 +00:00