cmake Test and Debug Let CMake create verbose Makefiles

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Once a CMake project is initialized via project(), the output verbosity of the resulting build script can be adjusted via:

CMAKE_VERBOSE_MAKEFILE

This variable can be set via CMake's command line when configuring a project:

cmake -DCMAKE_VERBOSE_MAKEFILE=ON <PATH_TO_PROJECT_ROOT>

For GNU make this variable has the same effect as running make VERBOSE=1.



Got any cmake Question?