From 4854d84904676676a90885e4100ad4b690366b51 Mon Sep 17 00:00:00 2001 From: Juan Ramos Date: Fri, 21 Jul 2023 16:18:58 -0600 Subject: [PATCH] cmake: Remove cmake-format --- .cmake-format.py | 34 ---------------------------------- CONTRIBUTING.md | 15 --------------- loader/CMakeLists.txt | 2 -- 3 files changed, 51 deletions(-) delete mode 100644 .cmake-format.py diff --git a/.cmake-format.py b/.cmake-format.py deleted file mode 100644 index 07d2f99d..00000000 --- a/.cmake-format.py +++ /dev/null @@ -1,34 +0,0 @@ -# Configuration for cmake-format (v0.4.1, circa Jul 2018) -# https://github.com/cheshirekow/cmake_format - -# How wide to allow formatted cmake files -line_width = 132 - -# How many spaces to tab for indent -tab_size = 4 - -# If arglists are longer than this, break them always -max_subargs_per_line = 3 - -# If true, separate flow control names from their parentheses with a space -separate_ctrl_name_with_space = False - -# If true, separate function names from parentheses with a space -separate_fn_name_with_space = False - -# If a statement is wrapped to more than one line, than dangle the closing -# parenthesis on it's own line -dangle_parens = False - -# What character to use for bulleted lists -bullet_char = u'*' - -# What character to use as punctuation after numerals in an enumerated list -enum_char = u'.' - -# What style line endings to use in the output. -line_ending = u'unix' - -# Format command names consistently as 'lower' or 'upper' case -command_case = u'lower' - diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d794cc72..4c65e120 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -139,21 +139,6 @@ scripts and before building and testing your changes. More details can be found * The indent is 4 spaces. * CMake functions are lower-case. * Variable and keyword names are upper-case. -* The format is defined by - [cmake-format](https://github.com/cheshirekow/cmake_format) - using the `.cmake-format.py` file in the repository to define the settings. - See the cmake-format page for information about its simple markup for comments. -* Disable reformatting of a block of comment lines by inserting - a `# ~~~` comment line before and after that block. -* Disable any formatting of a block of lines by surrounding that block with - `# cmake-format: off` and `# cmake-format: on` comment lines. -* To install: `sudo pip install cmake_format` -* To run: `cmake-format --in-place $FILENAME` -* **IMPORTANT (June 2018)** cmake-format v0.3.6 has a - [bug]( https://github.com/cheshirekow/cmake_format/issues/50) - that can corrupt the formatting of comment lines in CMake files. - A workaround is to use the following command _before_ running cmake-format: - `sed --in-place='' 's/^ *#/#/' $FILENAME` ### Contributor License Agreement (CLA) diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index 3b7cdda1..e1b0d71f 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -361,7 +361,6 @@ else() # framework version does not have to be "A", this part of the Apple toolchain expects it. # https://forums.developer.apple.com/thread/65963 -# cmake-format: off set_target_properties(vulkan-framework PROPERTIES OUTPUT_NAME vulkan FRAMEWORK TRUE @@ -375,7 +374,6 @@ else() PUBLIC_HEADER DESTINATION vulkan FRAMEWORK DESTINATION loader ) -# cmake-format: on endif() endif() -- 2.34.1