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.
Asked: 2022-09-25 11:00:00 +0000
Seen: 21 times
Last updated: Sep 21 '22