Add utility dependency to libmdrun_test_infrastructure
authorMark Abraham <mark.j.abraham@gmail.com>
Fri, 22 Oct 2021 09:26:18 +0000 (11:26 +0200)
committerAndrey Alekseenko <al42and@gmail.com>
Fri, 22 Oct 2021 11:31:32 +0000 (11:31 +0000)
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

index e80d1647f8f0db09fd8f39f8e31199132e37c107..74c4b9c3568cb0f8270bdaaa45c743d51aa17523 100644 (file)
@@ -47,7 +47,7 @@ gmx_add_unit_test_library(mdrun_test_infrastructure
     $<TARGET_OBJECTS:mdrun_objlib>
     )
 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