Skip to content

Commit 7d6dbd7

Browse files
committed
add errors when using nompi with Zoltan/CGNS
- CMakeLists.txt: add error when SCOREC_NO_MPI and ENABLE_CGNS. - zoltan/CMakeLists.txt: add error when SCOREC_NO_MPI and ENABLE_ZOLTAN. Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
1 parent 0ce7897 commit 7d6dbd7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ endif()
3434
#
3535
option(SCOREC_NO_MPI "Disable MPI support. When enabled only serial execution is supported." OFF)
3636
message(STATUS "SCOREC_NO_MPI: ${SCOREC_NO_MPI}")
37+
if(SCOREC_NO_MPI AND ENABLE_CGNS)
38+
message(FATAL_ERROR "SCOREC_NO_MPI is incompatible with CGNS.")
39+
endif()
3740

3841
# Set some default compiler flags that should always be used
3942
if(NOT USE_XSDK_DEFAULTS)

zoltan/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ xsdk_add_tpl(ZOLTAN)
99
xsdk_add_tpl(PARMETIS)
1010
message(STATUS "ENABLE_ZOLTAN: " ${ENABLE_ZOLTAN})
1111

12+
if(SCOREC_NO_MPI AND ENABLE_ZOLTAN)
13+
message(FATAL_ERROR "SCOREC_NO_MPI is incompatible with Zoltan.")
14+
endif()
15+
1216
# Let CMake know where to find custom find package implementations
1317
set(CMAKE_MODULE_PATH
1418
${CMAKE_MODULE_PATH}

0 commit comments

Comments
 (0)