Skip to content

Commit 0ab71cb

Browse files
committed
add deprecation and compatibility for pumi_no_mpi
Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
1 parent 5151576 commit 0ab71cb

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,16 @@ endif()
4141
#
4242
# option related to MPI
4343
#
44-
option(PUMI_NO_MPI "Disable MPI support. When enabled only serial execution is supported." OFF)
44+
if(SCOREC_NO_MPI)
45+
message(DEPRECATION
46+
"The SCOREC_NO_MPI option has been renamed to"
47+
" PUMI_NO_MPI. Please update your configuration to use the new name.")
48+
set(PUMI_NO_MPI_DEFAULT ON)
49+
endif()
50+
option(PUMI_NO_MPI
51+
"Disable MPI support. When enabled only serial execution is supported."
52+
${PUMI_NO_MPI_DEFAULT}
53+
)
4554
message(STATUS "PUMI_NO_MPI: ${PUMI_NO_MPI}")
4655
if(PUMI_NO_MPI AND PUMI_ENABLE_CGNS)
4756
message(FATAL_ERROR "PUMI_NO_MPI is incompatible with CGNS.")

0 commit comments

Comments
 (0)