Lines Matching +full:scan +full:- +full:limit
3 .. _cmake-style:
11 - **Indentation**: Use **2 spaces** for indentation. Avoid tabs to ensure
13 - **Line Length**: Limit line length to **100 characters** where possible.
14 - **Empty Lines**: Use empty lines to separate logically distinct sections
16 - **No Space Before Opening Brackets**: Do not add a space between a command
20 .. code-block:: cmake
35 - **Lowercase Commands**: Always use **lowercase** CMake commands (e.g.,
39 .. code-block:: cmake
47 - **One File Argument per Line**: Break the file arguments across multiple
48 lines to make it easier to scan and identify each source file or item.
50 .. code-block:: cmake
64 - **Use Uppercase for Cache Variables or variables shared across CMake files**:
68 .. code-block:: cmake
73 - **Use Lowercase for Local Variables**: For local variables within CMake
76 .. code-block:: cmake
80 - **Consistent Prefixing**: Use consistent prefixes for variables to avoid name
83 .. code-block:: cmake
90 - **Quote Strings and Variables**: Always quote string literals and variables
94 .. code-block:: cmake
102 - **Do Not Quote Boolean Values**: For boolean values (``ON``, ``OFF``,
105 .. code-block:: cmake
112 - Use CMake variables (``CMAKE_SOURCE_DIR``, ``CMAKE_BINARY_DIR``,
115 .. code-block:: cmake
122 - Use ``if``, ``elseif``, and ``else`` with proper indentation, and close with
125 .. code-block:: cmake
134 - Use comments to document complex logic in the CMake files.
136 .. code-block:: cmake