Skip to content

Commit

Permalink
Add EXACT to find_package of python because version should not mismat…
Browse files Browse the repository at this point in the history
…ch (#403)
  • Loading branch information
bakpaul authored Mar 6, 2024
1 parent a5b8be5 commit 31d6dab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SofaPython3Config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ include(SofaPython3Tools)

# Find Python3
if(NOT Python_FOUND)
find_package(Python @Python_VERSION@ QUIET REQUIRED COMPONENTS Interpreter Development)
find_package(Python @Python_VERSION@ EXACT QUIET REQUIRED COMPONENTS Interpreter Development)
endif()

# Find pybind11
Expand Down

0 comments on commit 31d6dab

Please sign in to comment.