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

QtCreator Windows cmake MinGw

    XMLWordPrintable

Details

    Description

      So problem appears when using QtCreator with cmake on Windows (in Linux sems to be working fine). No Qt used on Kit.

      Whenever we reopen an already functioning project with cmake, configuration gets faulty. Seems to ignore last CMAKE_BUILD_TYPE, and when it compiles (and installs) it creates a "noconfig".cmake instead of the correct one.

      It is strange as i dont even run cmake (i guess QtCreator does it when i reopen a session even if i have "autorun cmake" check disabled) but when rebuilding issue happens everytime

      Being specific:

      1. I had working a library, with Debug configuration (*.cmake and binaries OK).
      2. Close Qt
      3. Open Qt and reopen last session
      4. Build project

      Following this steps always appear this noconfig.cmake and  binaries seem to be compiled in a strange configuration,

      In order to fix it, i have to delete installed files and the whole build directory, re run cmake, and rebuild. Doing that everything works again fine (until next load of the project).

      Attachments

        1. 1_Debug_Config.png
          1_Debug_Config.png
          189 kB
        2. 2_Release_config.png
          2_Release_config.png
          188 kB
        3. 3_Debug_RunCmake.png
          3_Debug_RunCmake.png
          212 kB
        4. 4_Debug_Compilation_&_Install.png
          4_Debug_Compilation_&_Install.png
          205 kB
        5. 5_On_Load_Run_Cmake.png
          5_On_Load_Run_Cmake.png
          201 kB
        6. 6_After_Load_Config.png
          6_After_Load_Config.png
          187 kB
        7. 7_After_Load_Build.png
          7_After_Load_Build.png
          208 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            carlossg Carlos Sanchez
            carlossg Carlos Sanchez
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes