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

Cannot specify platform for modern cmake msvs generator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: Qt Creator 6.0.2
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      All

      Description

      QtCreator forms incorrect generator string. Ok, it's correct for msvs 2017 generator, but not for msvs 2019 generator.

      For example, 

      Here QtCreator creates string

       "-GVisual Studio 16 2019 -A Win32"

      but it's incorrect for msvs 2019.

      Generators
      * Visual Studio 16 2019 = Generates Visual Studio 2019 project files.
      Use -A option to specify architecture.
      Visual Studio 15 2017 [arch] = Generates Visual Studio 2017 project files.
      Optional [arch] can be "Win64" or "ARM".

      QtCreator should create string

       -G "Visual Studio 16 2019" -A "Win32"

      for msvs 2019+

        Attachments

        1. image-2022-02-10-16-19-22-900.png
          13 kB
          Anton null
        2. image-2022-02-16-13-57-00-500.png
          110 kB
          Anton null
        3. image-2022-02-16-13-59-08-200.png
          110 kB
          Anton null
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            cadam Cristian Adam
            Reporter:
            jihadist Anton null
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes