From 071388fcc08ff0af373b67ca77610c4958b99ef3 Mon Sep 17 00:00:00 2001 From: zachcran <15938371+zachcran@users.noreply.github.com> Date: Mon, 15 Dec 2025 11:47:19 -0700 Subject: [PATCH 1/2] Use 'nwx_find_package' to find MPI::MPI_CXX --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 239e305..980371f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,6 +24,7 @@ project(parallelzone VERSION "${parallelzone_version}" LANGUAGES CXX) set(CMAKE_CXX_STANDARD 20) include(get_cmaize) +include(nwx_find_package) # Work out the project paths set(project_inc_dir "${CMAKE_CURRENT_LIST_DIR}/include/${PROJECT_NAME}") @@ -49,9 +50,14 @@ if (BUILD_CUDA_BINDING OR BUILD_HIP_BINDINGS OR BUILD_SYCL_BINDING) endif() ### Dependendencies ### -set(project_depends "MPI::MPI_CXX") -find_package(MPI REQUIRED) +nwx_find_package( + MPI + REQUIRED + TARGETS + mpi "MPI::MPI_CXX" +) +set(project_depends mpi) cmaize_find_or_build_dependency( spdlog From d716f9b6de17a4afa176a54115354f4b90d1e55a Mon Sep 17 00:00:00 2001 From: zachcran <15938371+zachcran@users.noreply.github.com> Date: Wed, 28 Jan 2026 12:59:52 -0700 Subject: [PATCH 2/2] Small commit to trigger CI --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 980371f..6c0ddfa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,7 @@ cmaize_find_or_build_dependency( ) list(APPEND project_depends spdlog) -# PAPI bindings are enabled, leading to building PAPI with CUDA or rocm support +# PAPI bindings are enabled, leading to building PAPI with CUDA or ROCm support if("${BUILD_PAPI_BINDINGS}") include(build_papi) endif ()