diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2022-11-16 20:12:23 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2022-11-17 18:55:52 (GMT) |
commit | 91a7c0b51c217492231ade3e17cbe40cb1d8be4e (patch) | |
tree | a97a16c9ef4ad5257af71edadafbc64d0e4cb03e | |
parent | aa0c99c55c44c131f8f971a3a43178396036e5d5 (diff) | |
download | CMake-91a7c0b51c217492231ade3e17cbe40cb1d8be4e.zip CMake-91a7c0b51c217492231ade3e17cbe40cb1d8be4e.tar.gz CMake-91a7c0b51c217492231ade3e17cbe40cb1d8be4e.tar.bz2 |
CMake: fix violations of #pragma once check
-rw-r--r-- | Source/cmCMakePresetsGraphInternal.h | 2 | ||||
-rw-r--r-- | Source/cmCPluginAPI.h | 2 | ||||
-rw-r--r-- | Source/cmVersionConfig.h.in | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmCMakePresetsGraphInternal.h b/Source/cmCMakePresetsGraphInternal.h index 9e47a69..2726e92 100644 --- a/Source/cmCMakePresetsGraphInternal.h +++ b/Source/cmCMakePresetsGraphInternal.h @@ -1,5 +1,7 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ +#pragma once + #include <memory> #include <string> #include <vector> diff --git a/Source/cmCPluginAPI.h b/Source/cmCPluginAPI.h index 19626f0..0d8a366 100644 --- a/Source/cmCPluginAPI.h +++ b/Source/cmCPluginAPI.h @@ -8,7 +8,7 @@ loosely into four groups 1) Utility 2) cmMakefile 3) cmSourceFile 4) cmSystemTools. Within each grouping functions are listed alphabetically */ /*=========================================================================*/ -#ifndef cmCPluginAPI_h +#ifndef cmCPluginAPI_h /* NOLINT(cmake-use-pragma-once) */ #define cmCPluginAPI_h #define CMAKE_VERSION_MAJOR 2 diff --git a/Source/cmVersionConfig.h.in b/Source/cmVersionConfig.h.in index 06251f3..5d52950 100644 --- a/Source/cmVersionConfig.h.in +++ b/Source/cmVersionConfig.h.in @@ -1,5 +1,7 @@ /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ +#pragma once + #define CMake_VERSION_MAJOR @CMake_VERSION_MAJOR@ #define CMake_VERSION_MINOR @CMake_VERSION_MINOR@ #define CMake_VERSION_PATCH @CMake_VERSION_PATCH@ |