From 235d84cdc8e1494c2c6ba9c995041b9f232af7b8 Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Tue, 26 Mar 2024 11:17:19 +0000 Subject: [PATCH] fix python path for conda builds - fixes #187 --- src/Python/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Python/CMakeLists.txt b/src/Python/CMakeLists.txt index d0c2a64..39004ec 100644 --- a/src/Python/CMakeLists.txt +++ b/src/Python/CMakeLists.txt @@ -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)