Skip to content

Commit

Permalink
Fixing CMake search for Python when PerfStubs is used for 3.12+
Browse files Browse the repository at this point in the history
Former-commit-id: 46c241a728397a1c2a4a28535f3029d4285e78a6
  • Loading branch information
khuck committed Feb 14, 2025
1 parent bc5c835 commit 575d9c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 575d9c6

Please sign in to comment.