Skip to content

Commit

Permalink
fix python path for conda builds
Browse files Browse the repository at this point in the history
- fixes #187
  • Loading branch information
casperdcl committed Mar 26, 2024
1 parent 2403627 commit 235d84c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ project(regulariserPython)
message(STATUS "Creating Python Wrapper")
#include (GenerateExportHeader)

cmake_policy(SET CMP0094 NEW)
set(Python_FIND_REGISTRY LAST) # prefer active over base conda env
set(Python_FIND_VIRTUALENV STANDARD) # use PATH to search
find_package(Python COMPONENTS Interpreter REQUIRED)

set(PIP_CMAKE_DEPS cilreg)
Expand Down

0 comments on commit 235d84c

Please sign in to comment.