From: Mark Abraham Date: Fri, 22 Oct 2021 09:26:18 +0000 (+0200) Subject: Add utility dependency to libmdrun_test_infrastructure X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?p=alexxy%2Fgromacs.git;a=commitdiff_plain;h=ad50cb037ece7907e05768089ed8786e2b88ea61 Add utility dependency to libmdrun_test_infrastructure This provides the correct MPI dependency, otherwise MPI_Barrier is not necessarily found when linking targets that depend on this one. Fixes #4232 --- diff --git a/src/programs/mdrun/tests/CMakeLists.txt b/src/programs/mdrun/tests/CMakeLists.txt index e80d1647f8..74c4b9c356 100644 --- a/src/programs/mdrun/tests/CMakeLists.txt +++ b/src/programs/mdrun/tests/CMakeLists.txt @@ -47,7 +47,7 @@ gmx_add_unit_test_library(mdrun_test_infrastructure $ ) target_include_directories(mdrun_test_infrastructure SYSTEM PRIVATE ${PROJECT_SOURCE_DIR}/src/external) -target_link_libraries(mdrun_test_infrastructure PUBLIC legacy_api) +target_link_libraries(mdrun_test_infrastructure PUBLIC legacy_api utility) # To avoid running into test timeouts, some end-to-end tests of mdrun # functionality are split off. This can be rearranged in future as we