From ad50cb037ece7907e05768089ed8786e2b88ea61 Mon Sep 17 00:00:00 2001 From: Mark Abraham Date: Fri, 22 Oct 2021 11:26:18 +0200 Subject: [PATCH] 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 --- src/programs/mdrun/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.22.0