From e3de69ba5cbfef8dd0fc8b3f809bd5da13e05572 Mon Sep 17 00:00:00 2001 From: Erik Rigtorp Date: Tue, 17 Nov 2026 22:38:15 -0500 Subject: [PATCH] Use SPDX license headers in C++ files --- CMakeLists.txt | 1 + include/rigtorp/MPMCQueue.h | 23 ++--------------------- src/MPMCQueueExample.cpp | 3 +++ src/MPMCQueueTest.cpp | 23 ++--------------------- 4 files changed, 8 insertions(+), 42 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a75b98..a413831 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,7 @@ if(PROJECT_IS_TOP_LEVEL) ) install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}Config FILE_SET HEADERS) + install(FILES LICENSE DESTINATION "${CMAKE_INSTALL_DATADIR}/licenses/${PROJECT_NAME}") install( EXPORT ${PROJECT_NAME}Config diff --git a/include/rigtorp/MPMCQueue.h b/include/rigtorp/MPMCQueue.h index 7444f7e..336e491 100644 --- a/include/rigtorp/MPMCQueue.h +++ b/include/rigtorp/MPMCQueue.h @@ -1,24 +1,5 @@ -/* -Copyright (c) 2020 Erik Rigtorp - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - */ +// SPDX-FileCopyrightText: 2020 Erik Rigtorp +// SPDX-License-Identifier: MIT #pragma once diff --git a/src/MPMCQueueExample.cpp b/src/MPMCQueueExample.cpp index b23cd9a..a07f275 100644 --- a/src/MPMCQueueExample.cpp +++ b/src/MPMCQueueExample.cpp @@ -1,3 +1,6 @@ +// SPDX-FileCopyrightText: 2016 Erik Rigtorp +// SPDX-License-Identifier: MIT + #include #include #include diff --git a/src/MPMCQueueTest.cpp b/src/MPMCQueueTest.cpp index 9f831bf..4fddca1 100644 --- a/src/MPMCQueueTest.cpp +++ b/src/MPMCQueueTest.cpp @@ -1,24 +1,5 @@ -/* -Copyright (c) 2018 Erik Rigtorp - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - */ +// SPDX-FileCopyrightText: 2018 Erik Rigtorp +// SPDX-License-Identifier: MIT #undef NDEBUG