From 66043e8bcbccc01090def5c6437223a63a73ef21 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 12 Aug 2020 14:29:56 -0400 Subject: [PATCH] Fix for missing main directives --- .cmake-format.yaml | 2 ++ .pre-commit-config.yaml | 2 +- examples/extended-project/CMakeLists.txt | 4 ++-- examples/fetch/CMakeLists.txt | 3 +-- examples/root-dict/CMakeLists.txt | 3 +++ examples/root-simple/CMakeLists.txt | 2 ++ examples/root-usefile/CMakeLists.txt | 2 ++ examples/simple-project/CMakeLists.txt | 2 ++ 8 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 .cmake-format.yaml diff --git a/.cmake-format.yaml b/.cmake-format.yaml new file mode 100644 index 0000000..5ff0f31 --- /dev/null +++ b/.cmake-format.yaml @@ -0,0 +1,2 @@ +markup: + enable_markup: false diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3b9baee..9337ed5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.1.0 + rev: v3.2.0 hooks: - id: check-added-large-files - id: check-case-conflict diff --git a/examples/extended-project/CMakeLists.txt b/examples/extended-project/CMakeLists.txt index a2759d7..cda405c 100644 --- a/examples/extended-project/CMakeLists.txt +++ b/examples/extended-project/CMakeLists.txt @@ -1,5 +1,5 @@ -# Works with 3.11 and tested through 3.16 -cmake_minimum_required(VERSION 3.11...3.16) +# Works with 3.11 and tested through 3.18 +cmake_minimum_required(VERSION 3.11...3.18) # Project name and a few useful settings. Other commands can pick up the results project( diff --git a/examples/fetch/CMakeLists.txt b/examples/fetch/CMakeLists.txt index 1d320e6..e6f60b1 100644 --- a/examples/fetch/CMakeLists.txt +++ b/examples/fetch/CMakeLists.txt @@ -8,8 +8,7 @@ include(CTest) FetchContent_Declare( catch GIT_REPOSITORY https://github.com/catchorg/Catch2.git - GIT_TAG v2.13.0 -) + GIT_TAG v2.13.0) # CMake 3.14+ FetchContent_MakeAvailable(catch) diff --git a/examples/root-dict/CMakeLists.txt b/examples/root-dict/CMakeLists.txt index 8357102..848924c 100644 --- a/examples/root-dict/CMakeLists.txt +++ b/examples/root-dict/CMakeLists.txt @@ -1,4 +1,7 @@ +# CMake ROOT dict example + ## [main] + cmake_minimum_required(VERSION 3.4...3.16) project(RootDictExample LANGUAGES CXX) diff --git a/examples/root-simple/CMakeLists.txt b/examples/root-simple/CMakeLists.txt index f5d9978..fc36252 100644 --- a/examples/root-simple/CMakeLists.txt +++ b/examples/root-simple/CMakeLists.txt @@ -1,3 +1,5 @@ +# CMake ROOT simple example + ## [main] cmake_minimum_required(VERSION 3.1...3.16) diff --git a/examples/root-usefile/CMakeLists.txt b/examples/root-usefile/CMakeLists.txt index 8d3bba2..3534280 100644 --- a/examples/root-usefile/CMakeLists.txt +++ b/examples/root-usefile/CMakeLists.txt @@ -1,3 +1,5 @@ +# CMake ROOT usefile example + ## [main] cmake_minimum_required(VERSION 3.1...3.16) diff --git a/examples/simple-project/CMakeLists.txt b/examples/simple-project/CMakeLists.txt index 70e7045..d6d6eef 100644 --- a/examples/simple-project/CMakeLists.txt +++ b/examples/simple-project/CMakeLists.txt @@ -1,3 +1,5 @@ +# CMake simple example + ## [main] # Almost all CMake files should start with this