From c69ffc904c9b697062095afd02cec6af9fff40de Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Wed, 8 Jul 2026 17:44:13 +0200 Subject: [PATCH 1/2] Remove OpenMP search when not using likwid --- cmake/GMGPolarConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GMGPolarConfig.cmake.in b/cmake/GMGPolarConfig.cmake.in index 390a06a66..ca5ad7536 100644 --- a/cmake/GMGPolarConfig.cmake.in +++ b/cmake/GMGPolarConfig.cmake.in @@ -4,10 +4,10 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") include(CMakeFindDependencyMacro) -find_dependency(OpenMP COMPONENTS CXX) find_dependency(Kokkos) if(@GMGPOLAR_USE_MUMPS@) + find_dependency(OpenMP COMPONENTS CXX) find_dependency(MUMPS COMPONENTS OpenMP METIS) endif() From 8fcc5969046dff9f19089eade26e9aa7b8c28348 Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Thu, 9 Jul 2026 07:51:59 +0200 Subject: [PATCH 2/2] Fix wrong location of find_dependency --- cmake/GMGPolarConfig.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GMGPolarConfig.cmake.in b/cmake/GMGPolarConfig.cmake.in index ca5ad7536..9e0313fe1 100644 --- a/cmake/GMGPolarConfig.cmake.in +++ b/cmake/GMGPolarConfig.cmake.in @@ -7,11 +7,11 @@ include(CMakeFindDependencyMacro) find_dependency(Kokkos) if(@GMGPOLAR_USE_MUMPS@) - find_dependency(OpenMP COMPONENTS CXX) find_dependency(MUMPS COMPONENTS OpenMP METIS) endif() if(@GMGPOLAR_USE_LIKWID@) + find_dependency(OpenMP COMPONENTS CXX) find_dependency(LIKWID) endif()