Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CMake does not directly provide compilation information per transaction unit. However, you can use the VERBOSE flag to enable compiler output during compilation, which will give you more information about the actions being performed during compilation.

To enable the VERBOSE flag in CMake, you can set the CMAKE_VERBOSE_MAKEFILE variable to ON in your CMakeLists.txt file:

set(CMAKE_VERBOSE_MAKEFILE ON)

This will enable verbose output during the build process, which should give you more information about the compilation process.

Alternatively, you can also use a build system like Ninja or Make which have built-in support for displaying verbose build output during compilation. To use these build systems with CMake, you can set the CMAKE_GENERATOR variable to the appropriate build system when configuring your project with CMake:

cmake -G Ninja

This will generate a build system using Ninja, which you can then use to build your project and see more detailed compilation information.