Skip to content

Commit

Permalink
Specify exact Python version in fdmlpy cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
barakugav committed Jun 19, 2024
1 parent 34e3ce4 commit d6a4ba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ endif()
# endif()
# endif()

# Set minimal required versions
set(FDML_PY_MIN_VERSION 3.8)
# Set required versions
set(FDML_PY_VERSION 3.11)
set(FDML_BOOST_MIN_VERSION 1.75.0)

# Find CGAL package
Expand Down
2 changes: 1 addition & 1 deletion fdml/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

set(FDML_LIB_DIR "${CMAKE_BINARY_DIR}/fdml")

find_package(Python3 ${FDML_PY_MIN_VERSION} COMPONENTS Interpreter)
find_package(Python3 ${FDML_PY_VERSION} EXACT COMPONENTS Interpreter)
if (WIN32)
set(FDML_GEN_PROPS_CMD ${Python_EXECUTABLE} ${FDML_GEN_PROPS})
else()
Expand Down
2 changes: 1 addition & 1 deletion fdmlpy/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set(FDML_LIB_DIR "${CMAKE_BINARY_DIR}/fdml")
set(FDMLPY_LIB_DIR "${CMAKE_BINARY_DIR}/fdmlpy")
set(FDMLPY_PACKAGE_NAME "fdml")

find_package(Python ${FDML_PY_MIN_VERSION} COMPONENTS Interpreter Development)
find_package(Python ${FDML_PY_VERSION} EXACT COMPONENTS Interpreter Development)
set(FDML_PY_MAJOR_MINOR_VERSION "${Python_VERSION_MAJOR}${Python_VERSION_MINOR}")
find_package(nanobind CONFIG REQUIRED)

Expand Down

0 comments on commit d6a4ba4

Please sign in to comment.