openscenegraph: fix for CMake v4
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user