build: Prevent python bindings from being enabled along with MPI

MPI is not supported by cppyy
This commit is contained in:
Gabriel Ferreira
2024-11-10 17:17:56 +01:00
parent 6ef966c4cf
commit 194624068c

View File

@@ -696,6 +696,12 @@ macro(process_options)
set(ENABLE_PYTHON_BINDINGS_REASON
"missing dependency: ${missing_packages}"
)
elseif(${NS3_MPI})
message(
${HIGHLIGHTED_STATUS}
"Bindings: python bindings disabled due to an incompatibility with the MPI module"
)
set(ENABLE_PYTHON_BINDINGS_REASON "incompatible module enabled: mpi")
else()
set(ENABLE_PYTHON_BINDINGS ON)
endif()