From 63334f7902f1582cd99626e7424c398e94358424 Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Apr 16 2025 12:53:40 +0000 Subject: Document the `%cmake_generator` macro Signed-off-by: Cristian Le --- diff --git a/guidelines/modules/ROOT/pages/CMake.adoc b/guidelines/modules/ROOT/pages/CMake.adoc index a1da833..4e65b15 100644 --- a/guidelines/modules/ROOT/pages/CMake.adoc +++ b/guidelines/modules/ROOT/pages/CMake.adoc @@ -36,6 +36,11 @@ Installs the built project (using `+%__cmake --install+`). Runs the tests that are defined with `+add_test()+` in project (using `+%__ctest+`). +`+%cmake_generator+` (default `+Ninja+`):: +The generator used for the build (the `+-G+` option you pass to `+%cmake+`). +If you use something other than the default, you need to make sure to include the appropriate +`+BuildRequires+`. + When packaging KDE software, you most likely would replace `+%cmake+` with either `+%cmake_kf5+` or `+%cmake_kf6+`. For more information, see xref:KDEPackaging.adoc[KDE Packaging Guidelines].