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

CMake configure failure with given multiline toolchain file

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.1
    • Fix Version/s: 6.0.2, 6.1.0, 6.2.0
    • Component/s: Build System: CMake
    • Labels:
      None
    • Environment:
      openSUSE-Tumbleweed-20210203
      cmake-3.19.3
    • Platform/s:
      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

        For Gerrit Dashboard: QTBUG-90980
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            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