openscenegraph: fix for CMake v4

This commit is contained in:
Guilhem Saurel
2025-09-26 08:42:53 +02:00
parent 53e209515d
commit 0292f13177
@@ -135,6 +135,13 @@ stdenv.mkDerivation rec {
})
];
# ref. https://github.com/openscenegraph/OpenSceneGraph/pull/1373
postPatch = ''
substituteInPlace CMakeLists.txt --replace-fail \
"CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)" \
"CMAKE_MINIMUM_REQUIRED(VERSION 3.10)"
'';
cmakeFlags =
lib.optional (!withApps) "-DBUILD_OSG_APPLICATIONS=OFF"
++ lib.optional withExamples "-DBUILD_OSG_EXAMPLES=ON";