From 4a8ba2cc3d25c7876230e60936bf1e02a8cd892f Mon Sep 17 00:00:00 2001 From: Lukasz Dorau Date: Tue, 13 Jun 2023 13:39:16 +0200 Subject: [PATCH] test: update cmake_minimum_required version from 3.3 to 3.5 Update cmake_minimum_required version from 3.3 to 3.5, because of: CMake Deprecation Warning at CMakeLists.txt:7 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake. Signed-off-by: Lukasz Dorau --- CHANGELOG.md | 3 +++ CMakeLists.txt | 2 +- examples/01-connection/CMakeLists.txt | 4 ++-- examples/02-read-to-volatile/CMakeLists.txt | 4 ++-- examples/03-read-to-persistent/CMakeLists.txt | 4 ++-- examples/04-write-to-persistent/CMakeLists.txt | 4 ++-- examples/05-flush-to-persistent/CMakeLists.txt | 4 ++-- examples/06-multiple-connections/CMakeLists.txt | 4 ++-- examples/06scch-multiple-connections/CMakeLists.txt | 4 ++-- examples/07-atomic-write/CMakeLists.txt | 4 ++-- examples/08-messages-ping-pong/CMakeLists.txt | 4 ++-- .../08srq-simple-messages-ping-pong-with-srq/CMakeLists.txt | 4 ++-- examples/09-flush-to-persistent-GPSPM/CMakeLists.txt | 4 ++-- examples/09scch-flush-to-persistent-GPSPM/CMakeLists.txt | 4 ++-- examples/10-send-with-imm/CMakeLists.txt | 4 ++-- examples/11-write-with-imm/CMakeLists.txt | 3 ++- examples/12-receive-completion-queue/CMakeLists.txt | 4 ++-- examples/12scch-receive-completion-queue/CMakeLists.txt | 4 ++-- examples/13-messages-ping-pong-with-srq/CMakeLists.txt | 4 ++-- examples/cmake/common.cmake | 4 ++-- 20 files changed, 40 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f375606467..aa626f0a9c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed +- cmake_minimum_required version from 3.3 to 3.5 + ## [1.3.0] - 2023-05-25 ### Added - the native flush support (required support in the kernel and in an RNIC's driver) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a55692ee5..caeeef12d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ # Copyright (c) 2022-2023, Fujitsu Limited # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(rpma C) diff --git a/examples/01-connection/CMakeLists.txt b/examples/01-connection/CMakeLists.txt index beedd803dc..0e0bc02c35 100644 --- a/examples/01-connection/CMakeLists.txt +++ b/examples/01-connection/CMakeLists.txt @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2021, Intel Corporation +# Copyright 2020-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(connection-example C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/02-read-to-volatile/CMakeLists.txt b/examples/02-read-to-volatile/CMakeLists.txt index 6219350674..67c7bf7489 100644 --- a/examples/02-read-to-volatile/CMakeLists.txt +++ b/examples/02-read-to-volatile/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(read-example C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/03-read-to-persistent/CMakeLists.txt b/examples/03-read-to-persistent/CMakeLists.txt index b0be2b8c9b..8c10e0bd50 100644 --- a/examples/03-read-to-persistent/CMakeLists.txt +++ b/examples/03-read-to-persistent/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(read-to-persistent C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/04-write-to-persistent/CMakeLists.txt b/examples/04-write-to-persistent/CMakeLists.txt index ce76e8b949..4506d8572b 100644 --- a/examples/04-write-to-persistent/CMakeLists.txt +++ b/examples/04-write-to-persistent/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(write-to-persistent C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/05-flush-to-persistent/CMakeLists.txt b/examples/05-flush-to-persistent/CMakeLists.txt index 7462be8c18..b0129fa91d 100644 --- a/examples/05-flush-to-persistent/CMakeLists.txt +++ b/examples/05-flush-to-persistent/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(flush-to-persistent C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/06-multiple-connections/CMakeLists.txt b/examples/06-multiple-connections/CMakeLists.txt index 5a8ad93b89..72b2d3b616 100644 --- a/examples/06-multiple-connections/CMakeLists.txt +++ b/examples/06-multiple-connections/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(multiple-connections C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/06scch-multiple-connections/CMakeLists.txt b/examples/06scch-multiple-connections/CMakeLists.txt index 5a8ad93b89..72b2d3b616 100644 --- a/examples/06scch-multiple-connections/CMakeLists.txt +++ b/examples/06scch-multiple-connections/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(multiple-connections C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/07-atomic-write/CMakeLists.txt b/examples/07-atomic-write/CMakeLists.txt index d6198acc54..09030cf8d7 100644 --- a/examples/07-atomic-write/CMakeLists.txt +++ b/examples/07-atomic-write/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(atomic-write C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/08-messages-ping-pong/CMakeLists.txt b/examples/08-messages-ping-pong/CMakeLists.txt index 066a50b165..e4c19efbf9 100644 --- a/examples/08-messages-ping-pong/CMakeLists.txt +++ b/examples/08-messages-ping-pong/CMakeLists.txt @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(messages-ping-pong C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/08srq-simple-messages-ping-pong-with-srq/CMakeLists.txt b/examples/08srq-simple-messages-ping-pong-with-srq/CMakeLists.txt index 066a50b165..e4c19efbf9 100644 --- a/examples/08srq-simple-messages-ping-pong-with-srq/CMakeLists.txt +++ b/examples/08srq-simple-messages-ping-pong-with-srq/CMakeLists.txt @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(messages-ping-pong C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/09-flush-to-persistent-GPSPM/CMakeLists.txt b/examples/09-flush-to-persistent-GPSPM/CMakeLists.txt index be2ef23b9a..062d615b9f 100644 --- a/examples/09-flush-to-persistent-GPSPM/CMakeLists.txt +++ b/examples/09-flush-to-persistent-GPSPM/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(flush-to-persistent C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/09scch-flush-to-persistent-GPSPM/CMakeLists.txt b/examples/09scch-flush-to-persistent-GPSPM/CMakeLists.txt index be2ef23b9a..062d615b9f 100644 --- a/examples/09scch-flush-to-persistent-GPSPM/CMakeLists.txt +++ b/examples/09scch-flush-to-persistent-GPSPM/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # Copyright 2021, Fujitsu # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(flush-to-persistent C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/10-send-with-imm/CMakeLists.txt b/examples/10-send-with-imm/CMakeLists.txt index 2d194d84a5..5f56f00b59 100644 --- a/examples/10-send-with-imm/CMakeLists.txt +++ b/examples/10-send-with-imm/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2020 Fujitsu -# Copyright 2021, Intel Corporation +# Copyright 2021-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(send-with-imm C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/11-write-with-imm/CMakeLists.txt b/examples/11-write-with-imm/CMakeLists.txt index 614e4565d9..a27ffea700 100644 --- a/examples/11-write-with-imm/CMakeLists.txt +++ b/examples/11-write-with-imm/CMakeLists.txt @@ -1,9 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause # Copyright (c) 2021 Fujitsu +# Copyright 2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(write-with-imm C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/12-receive-completion-queue/CMakeLists.txt b/examples/12-receive-completion-queue/CMakeLists.txt index 2d03d6e509..edc87c8cf5 100644 --- a/examples/12-receive-completion-queue/CMakeLists.txt +++ b/examples/12-receive-completion-queue/CMakeLists.txt @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2022, Intel Corporation +# Copyright 2022-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(receive-completion-queue C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/12scch-receive-completion-queue/CMakeLists.txt b/examples/12scch-receive-completion-queue/CMakeLists.txt index ddbd7c9c54..88cf5a25c5 100644 --- a/examples/12scch-receive-completion-queue/CMakeLists.txt +++ b/examples/12scch-receive-completion-queue/CMakeLists.txt @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2022, Intel Corporation +# Copyright 2022-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(receive-completion-queue C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/13-messages-ping-pong-with-srq/CMakeLists.txt b/examples/13-messages-ping-pong-with-srq/CMakeLists.txt index 8cb98b415d..6b0e616293 100644 --- a/examples/13-messages-ping-pong-with-srq/CMakeLists.txt +++ b/examples/13-messages-ping-pong-with-srq/CMakeLists.txt @@ -1,10 +1,10 @@ # # SPDX-License-Identifier: BSD-3-Clause # Copyright 2022, Fujitsu -# Copyright 2022, Intel Corporation +# Copyright 2022-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) project(messages-ping-pong-with-srq C) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} diff --git a/examples/cmake/common.cmake b/examples/cmake/common.cmake index 8958b71e16..5d1d21b16a 100644 --- a/examples/cmake/common.cmake +++ b/examples/cmake/common.cmake @@ -1,9 +1,9 @@ # # SPDX-License-Identifier: BSD-3-Clause -# Copyright 2020-2022, Intel Corporation +# Copyright 2020-2023, Intel Corporation # -cmake_minimum_required(VERSION 3.3) +cmake_minimum_required(VERSION 3.5) function(add_example_with_pmem) set(options USE_LIBPROTOBUFC)