Where to find CMake build log to debug strange CMake errors

In modern CMake versions, the build log is in

example.txt
./CMakeFiles/CMakeConfigureLog.yaml

with ./ referring to the build directory. This file contains detailed information about the configuration process, including any errors that occurred. You can open this file with a text editor or a YAML viewer to analyze the build log and identify the cause of any strange CMake errors you may be encountering.

On the command line, using

example.sh
cat ./CMakeFiles/CMakeConfigureLog.yaml

is often more convenient to quickly view the contents of the log file.


Check out similar posts by category: CMake