execute_process doesn't print any output in Qt Creator
Summary
execute_process() function in CMake does not print any output in Qt Creator in General Messages pane.
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.
This bug has already been filed on Qt Creator bugtracker, but a suggestion was made there that it could be an issue in CMake.
Steps to reproduce in terminal
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.
Steps to reproduce in Qt Creator
Open Qt Creator.
Click on Open Project.
Find the CMakeLists.txt, click Open.
Click Configure Project.
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.
Environment
CMake 3.11.1
Ubuntu 17.10
Qt Creator 4.6.0
(all 64-bit)