cmake
CMake Errors
Exit codes and diagnostic prefixes emitted by CMake, CTest, and CPack. CMake uses structured prefixes such as 'CMake Error' and 'CMake Warning' in its output, and returns numeric exit codes to the shell.
7 codes
references cmake.org/cmake/help/latest/manual/cmake.1.htmlcmake.org/cmake/help/latest/manual/ctest.1.html
· All codes 7 codes
- 0 Success The cmake, ctest, or cpack command completed without errors.
- 1 Error CMake encountered a fatal error. This is the general non-zero exit code returned when configuration, generation, or a build step fails. Check the output for 'CMake Error' lines to identify the specific failure.
- CMakeDeprecationWarning CMake Deprecation Warning A feature or variable used in CMakeLists.txt is deprecated and will be removed in a future CMake release. Update to the recommended replacement shown in the message. Set CMAKE_ERROR_DEPRECATED=ON to turn these into hard errors.
- CMakeError CMake Error A fatal diagnostic emitted to stderr during configuration or generation. The message includes the file and line number of the offending CMakeLists.txt. Errors abort the configure step; fix the reported issue and re-run cmake.
- CMakeErrorDev CMake Error (dev) A fatal developer error, typically caused by incorrect use of a CMake API, a missing required variable, or a policy violation. Appears when running cmake with -Werror=dev or when the issue is unconditionally fatal for module authors.
- CMakeWarning CMake Warning A non-fatal diagnostic emitted during configuration. The build continues, but the condition may cause unexpected behaviour. Treat warnings as errors by setting -Werror=dev or the CMAKE_WARN_DEPRECATED variable.
- CMakeWarningDev CMake Warning (dev) A non-fatal diagnostic directed at CMake module or project authors rather than end users. These warn about incorrect usage of CMake APIs or patterns that may break in future versions. Suppress with -Wno-dev if the project is not under your control.