From 575d9c689cad941aa936b24c6b622f312e390183 Mon Sep 17 00:00:00 2001 From: Kevin Huck Date: Fri, 14 Feb 2025 19:32:05 +0000 Subject: [PATCH] Fixing CMake search for Python when PerfStubs is used for 3.12+ Former-commit-id: 46c241a728397a1c2a4a28535f3029d4285e78a6 --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 061e01cef..fe177ec10 100755 --- a/configure +++ b/configure @@ -11830,7 +11830,8 @@ build_perfstubs() { echo "PREFIX=${targetdir}" >> ${perfstubs_include_file} echo "TAUARCH=${architecture}" >> ${perfstubs_include_file} echo "TAUOPTIONS=${tauoptions}" >> ${perfstubs_include_file} - echo "TAUPYTHON=-DPERFSTUBS_WITH_PYTHON=TRUE -DPython3_ROOT_DIR=${Python3_ROOT_DIR} -DPython3_VERSION_MINOR=${Python3_VERSION_MINOR}" >> ${perfstubs_include_file} + # Let CMake find Python + echo "TAUPYTHON=-DPERFSTUBS_WITH_PYTHON=TRUE -DCMAKE_PREFIX_PATH=${Python3_ROOT_DIR}" >> ${perfstubs_include_file} cp etc/Makefile.perfstubs perfstubs/Makefile fixmakeargs="$fixmakeargs PerfStubs " make -C perfstubs clean