From 30590740adfcaaa22bde7e994c21742a91d0ef13 Mon Sep 17 00:00:00 2001 From: Joe Wallwork Date: Tue, 11 Feb 2025 09:28:01 +0000 Subject: [PATCH] Don't run with MPI on Windows --- src/CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1a9e11e4..ce081173 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -138,7 +138,10 @@ if(CMAKE_BUILD_TESTS) DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples) file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/6_Autograd DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples) - file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/7_MPI - DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples) - add_subdirectory(test/examples) + # NOTE: We do not currently support running with MPI on Windows + if(UNIX) + file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/../examples/7_MPI + DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/test/examples) + add_subdirectory(test/examples) + endif() endif()