From 7212d5545317bf00509b8ec3825b53d124d94b82 Mon Sep 17 00:00:00 2001 From: crivella Date: Thu, 26 Sep 2024 11:15:12 +0200 Subject: [PATCH] Added to CMakeMake --- easybuild/easyblocks/generic/cmakemake.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/easybuild/easyblocks/generic/cmakemake.py b/easybuild/easyblocks/generic/cmakemake.py index eb0d582018..98cd44f258 100644 --- a/easybuild/easyblocks/generic/cmakemake.py +++ b/easybuild/easyblocks/generic/cmakemake.py @@ -284,6 +284,10 @@ def configure_step(self, srcdir=None, builddir=None): # disable CMake user package repository options['CMAKE_FIND_USE_PACKAGE_REGISTRY'] = 'OFF' + # ensure CMake uses PATH to determine python without prioritizing a virtualenv + # necessary to pick up on the correct python version when `eb` is run from a virtualenv + options['Python3_FIND_VIRTUALENV'] = 'STANDARD' + if not self.cfg.get('allow_system_boost', False): boost_root = get_software_root('Boost') if boost_root: