Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.0.1
-
None
-
openSUSE-Tumbleweed-20210203
cmake-3.19.3
Description
CMake configure fails when given a multiline toolchain file:
$ cmake -DCMAKE_TOOLCHAIN_FILE=".../buildroot/toolchainfile.cmake" ...
[...]
CMake Error at cmake/QtAutoDetect.cmake:42 (string):
string sub-command FIND requires 3 or 4 parameters.
Call Stack (most recent call first):
cmake/QtAutoDetect.cmake:311 (qt_auto_detect_android)
CMakeLists.txt:19 (include)
[...]
in case the given toolchain file starts with multiple lines
in the first 80 characters, e.g. in the case of buildroot:
#
# Automatically generated file; DO NOT EDIT.
# CMake toolchain file for Buildroot
#
[...]
Attachments
For Gerrit Dashboard: QTBUG-90980 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
333092,4 | CMake/QtAutoDetect: fix failure with multiline toolchain file | dev | qt/qtbase | Status: MERGED | +2 | 0 |
333125,2 | CMake/QtAutoDetect: fix failure with multiline toolchain file | 6.0 | qt/qtbase | Status: MERGED | +2 | 0 |
333286,2 | CMake/QtAutoDetect: fix failure with multiline toolchain file | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |