ois: fix cmake 4 compatibility#449741
Conversation
|
|
|
It looks like at least for Linux targets removing this line from the If we're going to patch the 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()
|
|
@Sirius902 thank you for your message! I'm kinda confused, why this works. OIS didn't get any updates since years. Why do we need to patch this line out now? But if it works, I'm okay with it. I'll wait for the upstream pr to get updated, so I can fetch the patch from there or even better: update the package, when the pr gets pulled. The package builds on darwin, so this shouldn't have any side effects, I think. Please ping me, when there are any updates upsteam. |
|
Hey! I think it's best to add the patch as a seperate file in this repo, until the upstream pr gets updated/pulled. |
|
See #445447
It fixes the cmake version issue.
The package doesn't build because of another reason.
I couldn't find a good solution for it.
Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Add a 👍 reaction to pull requests you find important.