Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30018

Qt Creator cannot use CMake wrapper script on Windows

    XMLWordPrintable

Details

    • Windows

    Description

      https://www.qt.io/blog/docker-builds-from-qtcreator describes how to set up a "CMake wrapper script". Unfortunately, this wrapper script does not work on Windows.

       

      Steps to reproduce

      1. Install CMake from the official Qt installer, into the default installation folder
      2. Create a Batch script, my-cmake.bat, that contains a single line:
        C:\Qt\Tools\CMake_64\bin\cmake.exe %*
      3. Run my-cmake.bat --version from the Command Prompt. Verify that it prints the correct version information
      4. Add this wrapper my-cmake.bat to Qt Creator ("Edit" > "Preferences..." > "CMake" > "Tools" > "Add"
      5. Hover your mouse cursor over the "Path" field

       

      Outcomes
      Even though the tooltip from Step #5 shows the same, correct version information as Step #3, Qt Creator reports "Version not parseable".

       

       

      Notes
      A similar shell script seems to work just fine on Linux (tested on Ubuntu 22.04):

      #!/bin/sh
      ~/Qt/Tools/CMake/bin/cmake $@
      

      Attachments

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

        Activity

          People

            cadam Cristian Adam
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes