Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-90980

CMake configure failure with given multiline toolchain file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.0.2, 6.1.0, 6.2.0
    • 6.0.1
    • Build System: CMake
    • None
    • openSUSE-Tumbleweed-20210203
      cmake-3.19.3
    • Linux/Other display system

    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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jbornema Joerg Bornemann
            p_seiderer Peter Seiderer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes