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

CMake: Remove the "Default" built type from the list of build types

    XMLWordPrintable

Details

    • All
    • f45da7773819adbf7c14096961175c381480c3f8 (qt-creator/qt-creator/master)

    Description

      CMake uses the empty build type, which Qt Creator baptized as "Default", to define the common set of compiler parameters for all build types (Debug, Release, MinSizeRel, RelWithDebInfo).

      CMAKE_C_FLAGS and CMAKE_CXX_FLAGS will be used for the empty build, which will be generated from the CMAKE_C_FLAGS_INIT and CMAKE_CXX_FLAGS_INIT variables plus the content of the environment variables CFLAGS and CXXFLAGS.

      GCC users will get just -O0 build, since that's the default optimization value. It makes no sense to have "Debug" and "Default" also as Debug build. 

      QMake offers "Debug", "Release", and "Profile".

      CMake has "Debug", "Release", "RelWithDebInfo" which works exactly as "Profile", and "MinSizeRel" which could be useful in some cases.

      Please remove the "Default" configuration, which just creates confusion, and should not be the "default".

       

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            cadam Cristian Adam
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes