Skip to content

Commit

Permalink
try 5
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Aug 29, 2023
1 parent 293a5a8 commit 4f0ed96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ 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
Expand Down
8 changes: 6 additions & 2 deletions export/cmake/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ if (NOT LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS OR LIBINT_USE_BUNDLED_BOO
endif()
endif()

# Python is optional, unless ...
if (ENABLE_FORTRAN) # ... need fortran
# 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)
find_package(Python COMPONENTS Interpreter Development REQUIRED)
elif (ENABLE_FORTRAN)
find_package(Python COMPONENTS Interpreter REQUIRED)
else(ENABLE_FORTRAN)
find_package(Python COMPONENTS Interpreter)
Expand Down

0 comments on commit 4f0ed96

Please sign in to comment.