diff --git a/var/spack/repos/builtin/packages/acts/package.py b/var/spack/repos/builtin/packages/acts/package.py index 6d0ad04e21..624e03cfae 100644 --- a/var/spack/repos/builtin/packages/acts/package.py +++ b/var/spack/repos/builtin/packages/acts/package.py @@ -391,4 +391,8 @@ def plugin_cmake_variant(plugin_name, spack_variant): cxxstd = spec["root"].variants["cxxstd"].value args.append("-DCMAKE_CXX_STANDARD={0}".format(cxxstd)) + if "+python" in spec: + python = spec["python"].command.path + args.append("-DPython_EXECUTABLE={0}".format(python)) + return args