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

CMake: execute_process doesn't print any output

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • Qt Creator 4.6.0
    • Qt Creator 4.6.0

      Ubuntu 17.10

      CMake 3.9.1 and 3.11.1

      (everything 64-bit)

    Description

      Summary

      execute_process() function in CMake does not print any output in General Messages pane in Qt Creator. 

      This bug is especially vexing when using  CMake-Conan wrapper. Internally it uses execute_process() to invoke "conan install" which builds project dependencies. It can take a long time when using big libraries, during which it seems the "conan install" process has frozen.

      Steps to reproduce

      Create CMakeLists.txt: 

      cmake_minimum_required(VERSION 3.0)
      message(STATUS "Executing custom process:")
      execute_process(COMMAND echo "This is the printed executed command.")

      Run in console:

      mkdir build && cd build
      cmake ..
      

      You will see in the output:

      -- Executing custom process:
      This is the printed executed command.

      Open the project in Qt Creator and build it.

      Expected result

      General Messages pane should contain:

      -- Executing custom process:
      This is the printed executed command.

      Actual result

      General Message pane contains 

      -- Executing custom process:

      but does not contain

      This is the printed executed command.

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            fazer Arkadiusz Piekarz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes