diff --git a/cmake/GMGPolarConfig.cmake.in b/cmake/GMGPolarConfig.cmake.in index 390a06a66..9e0313fe1 100644 --- a/cmake/GMGPolarConfig.cmake.in +++ b/cmake/GMGPolarConfig.cmake.in @@ -4,7 +4,6 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") include(CMakeFindDependencyMacro) -find_dependency(OpenMP COMPONENTS CXX) find_dependency(Kokkos) if(@GMGPOLAR_USE_MUMPS@) @@ -12,6 +11,7 @@ if(@GMGPOLAR_USE_MUMPS@) endif() if(@GMGPOLAR_USE_LIKWID@) + find_dependency(OpenMP COMPONENTS CXX) find_dependency(LIKWID) endif()