mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-01 05:04:40 +00:00
15 lines
461 B
Diff
15 lines
461 B
Diff
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)
|