CMake style guide
January 13, 2026 ยท View on GitHub
General recommendations
Tip
The "Mastering CMake" book hosted at https://cmake.org/cmake/help/book/mastering-cmake/index.html is a good resource.
Style guidelines
CMake dependencies
See dependencies.md for guidance on how to add dependencies between subprojects and third party sources.
Note that within each superrepo (rocm-systems, rocm-libraries), subprojects must be compatible with one another at the same git commit, and TheRock enforces this.