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
#
[...]