Skip to content

Commit

Permalink
Fix linker errors when using boost from config
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonis committed Aug 8, 2024
1 parent 0550f23 commit 7eddc3e
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,14 @@ target_include_directories(precice-aste-run PRIVATE src thirdparty)
target_link_libraries(precice-aste-run
precice::precice
Threads::Threads
Boost::boost
Boost::log
Boost::log_setup
Boost::program_options
Boost::system
Boost::thread
Boost::unit_test_framework
MPI::MPI_CXX
${Boost_LIBRARIES}
${VTK_LIBRARIES}
)

Expand All @@ -75,7 +81,13 @@ endif()
add_executable(test-precice-aste tests/testing.cpp tests/read_test.cpp tests/write_test.cpp src/mesh.cpp src/logger.cpp)
target_include_directories(test-precice-aste PRIVATE src thirdparty)
target_link_libraries(test-precice-aste
${Boost_LIBRARIES}
Boost::boost
Boost::log
Boost::log_setup
Boost::program_options
Boost::system
Boost::thread
Boost::unit_test_framework
MPI::MPI_CXX
${VTK_LIBRARIES}
)
Expand Down

0 comments on commit 7eddc3e

Please sign in to comment.