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

Wrong cxx compiler detection when using ninja generator with CMake

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 3.2.0
    • None
    • Windows 7 64 bit

      If Qt Creator is used to open a CMake project and the ninja generator is selected it fails to find the correct compiler.

      This happens only if there is another compiler installed on the system whichs path is in the system's PATH variable.

      An example:
      If the selected Qt Kit contains the visual studio compiler and there is another compiler installed on the system (e.g.: http://strawberryperl.com/). In this case, the strawberry's c compiler is found by CMake becaus there are the strawberry compiler paths in the system's path variable.

      A workaround is to remove the paths of the other compiler from the system's PATH variable.

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

            dt Daniel Teske
            teebaum Thomas Baumann
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes