Look for the various possible names of the gromacs package.
[alexxy/gromacs.git] / python_packaging / src / CMakeLists.txt
index b93d8cd37b0db80829174b2abd4b1ec152b545d5..c75549fc8213ba825f08154b882a04fb168982ff 100644 (file)
@@ -153,6 +153,7 @@ set_target_properties(_gmxapi PROPERTIES
 if(GMXAPI_MASTER_PROJECT)
     # TODO: This requirement is probably overly restrictive.
     find_package(GROMACS 2021 REQUIRED
+                 NAMES gromacs gromacs_mpi
                  HINTS "$ENV{GROMACS_DIR}"
                  )
 endif()