Skip to content

Commit

Permalink
[travis] added missing Threads::Threads for the hf++ example out-of-t…
Browse files Browse the repository at this point in the history
…ree test (why, clang, why?)
  • Loading branch information
evaleev committed Apr 2, 2020
1 parent 9677bf6 commit 1e8b40d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/travisci_build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ cat > CMakeLists.txt <<EOF
cmake_minimum_required(VERSION 3.8)
project(hf++)
find_package(Libint2 2.7.0 REQUIRED)
find_package(Threads::Threads) # clang does not autolink threads even though we are using std::thread
add_executable(hf++ EXCLUDE_FROM_ALL ../tests/hartree-fock/hartree-fock++.cc)
target_link_libraries(hf++ Libint2::cxx)
target_link_libraries(hf++ Libint2::cxx Threads::Threads)
EOF
cmake . -DCMAKE_PREFIX_PATH=${INSTALL_PREFIX}/libint2
cmake --build . --target hf++
Expand Down

0 comments on commit 1e8b40d

Please sign in to comment.