CMake: add OpenMP detection to exported target
authorChristoph Junghans <junghans@votca.org>
Sun, 12 Jul 2020 20:53:03 +0000 (14:53 -0600)
committerChristoph Junghans <junghans@votca.org>
Sun, 12 Jul 2020 20:53:03 +0000 (14:53 -0600)
src/gromacs/gromacs-config.cmake.cmakein

index 98b5c6692c31207170aed6f6e7cbfd3955c7905b..7ea1facd85902c3710f1074398a73ea099b8200f 100644 (file)
@@ -62,6 +62,10 @@ if (_libs MATCHES "tng_io::tng_io")
     include(CMakeFindDependencyMacro)
     find_dependency(TNG_IO)
 endif()
+if (_libs MATCHES "OpenMP::OpenMP_CXX")
+    include(CMakeFindDependencyMacro)
+    find_dependency(OpenMP REQUIRED)
+endif()
 unset(_libs)
 
 set(GROMACS_INCLUDE_DIRS)