Skip to content

Commit

Permalink
fix: added find package to find updated python version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPatrie committed Feb 5, 2024
1 parent ee278db commit 363a5f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions source/pybind11/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ else()
cmake_policy(VERSION 3.22)
endif()

find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module Development.Embed VERSION 3.10...3.12)

# Avoid infinite recursion if tests include this as a subdirectory
if(DEFINED PYBIND11_MASTER_PROJECT)
return()
Expand Down
2 changes: 2 additions & 0 deletions source/python/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# python binding.

find_package(Python3 REQUIRED COMPONENTS Interpreter Development.Module Development.Embed VERSION 3.10...3.12)

# recompile libsmoldyn for PYTHON.
add_library(_pysmoldyn STATIC ${SRC_FILES}
$<TARGET_OBJECTS:Steve>
Expand Down

0 comments on commit 363a5f0

Please sign in to comment.