Where to find CMake build log to debug strange CMake errors
In modern CMake versions, the build log is in
example.txt
./CMakeFiles/CMakeConfigureLog.yamlwith ./ 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.yamlis often more convenient to quickly view the contents of the log file.
Check out similar posts by category:
CMake
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow