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

Qt CMake configuration fails when using a toolchain file that overrides commands

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 6.2.0 Beta1, 6.3.0 Alpha
    • 6.2
    • Build System: CMake
    • None
    • MSVC (16.10.0 preview 2),

      cmake version 3.20.2

      ninja --version : 1.10.0

    • Windows
    • c72b7b8e5e530fbd03b704380940f5fa86e5341d (qt/qtbase/dev) ba96d6b834588c0dd7fe3aeceed47e006f971405 (qt/qtbase/6.2)

    Description

      Reconfiguring my build at the moment leads to the output shown below:

      >> cmake .
      CMake Error at qtbase/cmake/QtAutoDetect.cmake:93 (message):
        Executing CMake script
        F:/projects/qt/dev/src/qtbase/cmake/QtLoadFilePrintVars.cmake failed with
        code 1.
      Call Stack (most recent call first):
        qtbase/cmake/QtAutoDetect.cmake:154 (qt_auto_detect_read_toolchain_file)
        qtbase/cmake/QtAutoDetect.cmake:450 (qt_auto_detect_android)
        CMakeLists.txt:9 (include)

      Currently building for Windows on Windows, using MSVC (16.10.0 preview 2).

      The initial build itself was fine, but it doesn't seem to pick up changes made to cmakelists.txt files, and upon reconfiguring manually it errors out.

      Attachments

        1. log.txt
          17 kB
          Mårten Nordheim

        Issue Links

          Activity

            People

              jbornema Joerg Bornemann
              manordheim Mårten Nordheim
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: