ois: fix cmake 4 compatibility (#449741)

This commit is contained in:
Yaya
2025-10-10 15:47:03 +00:00
committed by GitHub
2 changed files with 24 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 951b2b1..006b36b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.10)
project(OIS)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/CmakeModules)
@@ -218,7 +218,6 @@ endif()
if(UNIX)
if (NOT APPLE)
- add_dependencies(OIS X11)
target_link_libraries(OIS X11)
endif()
+6
View File
@@ -25,6 +25,12 @@ stdenv.mkDerivation rec {
"-DCMAKE_INSTALL_LIBDIR=lib"
];
patches = [
# CMake 4 dropped support of versions lower than 3.5,
# versions lower than 3.10 are deprecated.
./cmake4.patch
];
meta = with lib; {
description = "Object-oriented C++ input system";
maintainers = [ maintainers.raskin ];