Skip to content

Commit

Permalink
try 18
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Sep 1, 2023
1 parent c8e6fa5 commit 62f2fab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build

on: [push, pull_request]

#env:

jobs:
build_repo:
strategy:
Expand Down Expand Up @@ -281,7 +279,7 @@ jobs:
cat > CMakeLists.txt <<EOF
cmake_minimum_required(VERSION 3.8)
project(hf++)
find_package(Libint2 2.7.2 REQUIRED COMPONENTS eri_c4_d0_l2 CXX_ho)
find_package(Libint2 2.8.0 REQUIRED)
get_target_property(_l2_maxam Libint2::int2 Libint2_MAX_AM_ERI)
message("Libint2_MAX_AM_ERI \${_l2_maxam}")
find_package(Threads) # clang does not autolink threads even though we are using std::thread
Expand All @@ -290,10 +288,6 @@ jobs:
EOF
cmake -S . -B build -DCMAKE_PREFIX_PATH="${{github.workspace}}/installed" ${{ matrix.cfg.testargs }}
cmake --build build --target hf++
ls -l ./build
ls -l ../libint/tests/hartree-fock
which ./build/hf++
which python
./build/hf++ ../libint/tests/hartree-fock/h2o_rotated.xyz | python ../libint/tests/hartree-fock/hartree-fock++-validate.py ../libint/MakeVars.features
- name: Build (again) & Test Python bindings
Expand Down
5 changes: 5 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ if (TARGET libint2_obj)
if(MSVC)
target_compile_definitions(libint2-python PUBLIC _USE_MATH_DEFINES)
target_compile_options(libint2-python PUBLIC "/EHsc")
set_target_properties(
libint2-python
PROPERTIES
WINDOWS_EXPORT_ALL_SYMBOLS ON
)
endif()

target_link_libraries(libint2-python PRIVATE libint2_obj)
Expand Down

0 comments on commit 62f2fab

Please sign in to comment.