diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index e73cbb8c8..ce4cd4c88 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -270,7 +270,6 @@ jobs: -DCMAKE_CXX_COMPILER=${CXX} \ -DLIBINT2_PYTHON=ON \ -DCMAKE_PREFIX_PATH="${CONDA_PREFIX}" \ - -DPython_EXECUTABLE="${CONDA_PREFIX}/bin/python" \ ${{ matrix.cfg.libargs }} cmake --build build --target install libint2-python-test diff --git a/export/cmake/CMakeLists.txt.export b/export/cmake/CMakeLists.txt.export index 7a0448a09..325adb1a3 100644 --- a/export/cmake/CMakeLists.txt.export +++ b/export/cmake/CMakeLists.txt.export @@ -154,7 +154,7 @@ endif() # Python is optionally used for testing. # * But for Fortran, it's additionally required for preprocessing. # * And for Python bindings, it's required along with its headers. -if (LIBINT2_ENABLE_PYTHON) +if (LIBINT2_PYTHON) find_package(Python COMPONENTS Interpreter Development REQUIRED) elif (ENABLE_FORTRAN) find_package(Python COMPONENTS Interpreter REQUIRED)