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

Qt Creator cannot build CMake projects because of missing ninja

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • Qt Creator 4.13.0
    • macOS

    Description

      I've installed Qt Creator 4.13 on macOS.

      CMake 3.18.2 and Ninja 1.10.1 are provided by homebrew.

      Qt Creator can detect cmake as being present in the "system" at /usr/local/bin/cmake, unfortunately when I try to build I get:

      CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
      

      I fixed the problem by adding in the CMake Initial Parameters -DCMAKE_MAKE_PROGRAM=/usr/local/bin/ninja.

      I wish I didn't have to do this, and Qt Creator would do this for me:

      • probe the system for Ninja, display it in the same way CMake is in settings
      • pass -DCMAKE_MAKE_PROGRAM in CMake Initial Parameters

      Attachments

        Issue Links

          Activity

            People

              cadam Cristian Adam
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: