sdrpp: fix cmake 4 compatibility

This commit is contained in:
SchweGELBin
2025-10-16 14:32:48 +02:00
parent c5413c6277
commit 67b4fb02ab
2 changed files with 33 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
diff --git a/core/libcorrect/CMakeLists.txt b/core/libcorrect/CMakeLists.txt
index 7fce281d..b709255f 100644
--- a/core/libcorrect/CMakeLists.txt
+++ b/core/libcorrect/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.13)
project(Correct C)
include(CheckLibraryExists)
include(CheckIncludeFiles)
diff --git a/misc_modules/discord_integration/discord-rpc/CMakeLists.txt b/misc_modules/discord_integration/discord-rpc/CMakeLists.txt
index 1dc1c913..e9924677 100644
--- a/misc_modules/discord_integration/discord-rpc/CMakeLists.txt
+++ b/misc_modules/discord_integration/discord-rpc/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required (VERSION 3.2.0)
+cmake_minimum_required (VERSION 3.13)
project (DiscordRPC)
include(GNUInstallDirs)
@@ -11,4 +11,4 @@ file(GLOB_RECURSE ALL_SOURCE_FILES
# add subdirs
-add_subdirectory(src)
\ No newline at end of file
+add_subdirectory(src)
+6 -1
View File
@@ -83,7 +83,12 @@ stdenv.mkDerivation rec {
hash = git_hash;
};
patches = [ ./runtime-prefix.patch ];
patches = [
./runtime-prefix.patch
# CMake 4 dropped support of versions lower than 3.5,
# versions lower than 3.10 are deprecated.
./cmake4.patch
];
postPatch = ''
substituteInPlace CMakeLists.txt \