From 30055400dc68995901491fe4330e77bdd210b276 Mon Sep 17 00:00:00 2001 From: burgholzer Date: Sat, 13 Jan 2024 12:59:43 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20add=20back=20Python=20variables?= =?UTF-8?q?=20to=20find=20the=20right=20Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: burgholzer --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index da83d553..b597a0ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,14 @@ if(BUILD_MQT_QCEC_BINDINGS) set(BINDINGS ON CACHE INTERNAL "Enable settings related to Python bindings") + set(Python_FIND_VIRTUALENV + FIRST + CACHE STRING "Give precedence to virtualenvs when searching for Python") + set(Python_ARTIFACTS_INTERACTIVE + ON + CACHE + BOOL + "Prevent multiple searches for Python and instead cache the results.") # top-level call to find Python find_package( Python 3.8 REQUIRED