Skip to content

Commit

Permalink
Some magic to prefer venv Python over system Python
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Oct 24, 2024
1 parent b6af724 commit 90e3cc5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ message(STATUS "MPIEXEC_EXECUTABLE=${MPIEXEC_EXECUTABLE}")
message(STATUS "")

# Python is not required, but we want to add pip packages to spatialindex search path
set(Python3_FIND_VIRTUALENV "FIRST")
find_package(Python)
if(Python_FOUND)
message(STATUS "Python_VERSION_MAJOR " ${Python_VERSION_MAJOR})
Expand Down

0 comments on commit 90e3cc5

Please sign in to comment.