Commit b738f9d0 authored by Philipp Arras's avatar Philipp Arras Committed by Gaetan Lepage
Browse files

proxsuite: fix build following nanobind update

parent a6e29045
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index 07678691f..1d85e5eb2 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -31,6 +31,9 @@ execute_process(
   OUTPUT_STRIP_TRAILING_WHITESPACE
   OUTPUT_VARIABLE nanobind_ROOT
 )
+if(NOT Python_VERSION AND Python3_VERSION)
+  set(Python_VERSION ${Python3_VERSION})
+endif()
 find_package(nanobind CONFIG)
 cmake_policy(POP)
 if(NOT nanobind_FOUND)
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-1+a5tFOlEwzhGZtll35EMFceD0iUOOQCbwJd9NcFDlk=";
  };

  patches = [
    # Set Python_VERSION to Python3_VERSION if not already set
    ./fix-cmake-python-version.patch
  ];

  # ref. https://github.com/Simple-Robotics/proxsuite/pull/408 merged upstream
  postPatch = ''
    substituteInPlace CMakeLists.txt --replace-fail \