Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P1: Critical
-
Resolution: Done
-
Affects Version/s: 6.0.1
-
Component/s: Build System: CMake
-
Labels:None
-
Environment:openSUSE-Tumbleweed-20210203
cmake-3.19.3
-
Platform/s:
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
#
[...]