gnu-make verbose configure - Using CMake with GNU Make: How can I see the exact commands?





2 Answers

It is convenient to set the option in the CMakeLists.txt file as:

set(CMAKE_VERBOSE_MAKEFILE ON)
find_package windows --build

I use CMake with GNU Make and would like to see all commands exactly (for example how the compiler is executed, all the flags etc.).

GNU make has --debug, but it does not seem to be that helpful are there any other options? Does CMake provide additional flags in the generated Makefile for debugging purpose?




Or simply export VERBOSE environment variable on the shell like this: export VERBOSE=1




Related