CMakePrintSystemInformation
This module can be used for diagnostics to print system information.
Load this module in a CMake project with:
include(CMakePrintSystemInformation)
Examples
For example, including this module in a project:
CMakeLists.txtproject(Example) # ... include(CMakePrintSystemInformation)
prints various CMake variables:
CMAKE_SYSTEM is Linux-6.11.0-17-generic Linux 6.11.0-17-generic x86_64 CMAKE_SYSTEM file is Platform/Linux CMAKE_C_COMPILER is /usr/bin/cc CMAKE_CXX_COMPILER is /usr/bin/c++ CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS is -shared CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS is -shared ...
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/module/CMakePrintSystemInformation.html