diff --git a/CMakeLists.txt b/CMakeLists.txt index 14ec12b8..57143497 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,6 +45,9 @@ include( "cmake/ImportLibrary.cmake" ) # Trilinos define_trilinos_target( ${L3STER_ENABLE_VERBOSITY} 13.4 Tpetra Belos MueLu ) list( APPEND L3STER_INTERFACE_DEPENDENCIES Trilinos ) +if ( TARGET OpenMP::OpenMP_CXX ) + list( APPEND L3STER_CMAKE_DEPENDENCIES OpenMP::OpenMP_CXX ) +endif () # Eigen find_package( Eigen3 3.4 REQUIRED )