From 271bdc1af73fc14335e2442d6d3dbd707b72698b Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 20 May 2025 13:56:36 -0400 Subject: [PATCH] alternate way to specify defines for MPI tests --- unittest/c-library/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittest/c-library/CMakeLists.txt b/unittest/c-library/CMakeLists.txt index 5b5dd4f357..142c4d3523 100644 --- a/unittest/c-library/CMakeLists.txt +++ b/unittest/c-library/CMakeLists.txt @@ -70,7 +70,7 @@ add_test(NAME LibraryConfig COMMAND test_library_config) add_executable(test_library_mpi test_library_mpi.cpp) target_link_libraries(test_library_mpi PRIVATE lammps GTest::GMock) -target_compile_definitions(test_library_mpi PRIVATE "${TEST_CONFIG_DEFS};MPICH_SKIP_MPICXX;OMPI_SKIP_MPICXX=1") +target_compile_definitions(test_library_mpi PRIVATE "${TEST_CONFIG_DEFS};-DMPICH_SKIP_MPICXX;-DOMPI_SKIP_MPICXX=1") add_mpi_test(NAME LibraryMPI NUM_PROCS 4 COMMAND $) # simple run tests for coupling to the LAMMPS library