forked from pool/cxxopts
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/cxxopts?expand=0&rev=9
45 lines
1.5 KiB
Diff
45 lines
1.5 KiB
Diff
From 050ccd8badc6c706c4d20b3db48b319cc5bd9187 Mon Sep 17 00:00:00 2001
|
|
From: Vitaly <vitaly@easycoding.org>
|
|
Date: Wed, 12 Mar 2025 09:59:07 +0100
|
|
Subject: [PATCH] Added compatibility with CMake 4.
|
|
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
test/add-subdirectory-test/CMakeLists.txt | 2 +-
|
|
test/find-package-test/CMakeLists.txt | 2 +-
|
|
3 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a6e4e86e..110d3dd7 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -17,7 +17,7 @@
|
|
# 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.
|
|
-cmake_minimum_required(VERSION 3.1...3.19)
|
|
+cmake_minimum_required(VERSION 3.5...3.19)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")
|
|
include(cxxopts)
|
|
diff --git a/test/add-subdirectory-test/CMakeLists.txt b/test/add-subdirectory-test/CMakeLists.txt
|
|
index ec14d597..8bf81e3a 100644
|
|
--- a/test/add-subdirectory-test/CMakeLists.txt
|
|
+++ b/test/add-subdirectory-test/CMakeLists.txt
|
|
@@ -1,4 +1,4 @@
|
|
-cmake_minimum_required(VERSION 3.1)
|
|
+cmake_minimum_required(VERSION 3.5...3.19)
|
|
|
|
project(cxxopts-test)
|
|
|
|
diff --git a/test/find-package-test/CMakeLists.txt b/test/find-package-test/CMakeLists.txt
|
|
index b88d7c9d..0bc60384 100644
|
|
--- a/test/find-package-test/CMakeLists.txt
|
|
+++ b/test/find-package-test/CMakeLists.txt
|
|
@@ -1,4 +1,4 @@
|
|
-cmake_minimum_required(VERSION 3.1)
|
|
+cmake_minimum_required(VERSION 3.5...3.19)
|
|
|
|
project(cxxopts-test)
|
|
|