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.
This should be really simple, but I am having a hard time figuring it
Share
You can use
make VERBOSE=1and theCMAKE_VERBOSE_MAKEFILEvariable 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 inCMakeFiles/<targetname>.dir/source.i. Actual paths may differ, so if it doesn’t work, you can checkMakefilegenerated by CMake for the appropriate target.