Reputation: 2175
This should be really simple, but I am having a hard time figuring it out. Usually, when building the project with make, only the stderr of the compiler is shown. How can I configure CMake to display the stdout of the compiler also? I am using GCC, if this should matter.
Upvotes: 31
Views: 41692
Reputation: 34401
You can use make VERBOSE=1
and the CMAKE_VERBOSE_MAKEFILE
variable to show commands being run by CMake.
CMake also automatically generates preprocess targets for sources, but there is no target to preprocess every source at once. To preprocess a single file, run make source.i
, and it would appear in CMakeFiles/<targetname>.dir/source.i
. Actual paths may differ, so if it doesn't work, you can check Makefile
generated by CMake for the appropriate target.
Upvotes: 43