diff --git a/packages/PyTrilinos2/CMakeLists.txt b/packages/PyTrilinos2/CMakeLists.txt index 57d60539d8c4..bf30704092bb 100644 --- a/packages/PyTrilinos2/CMakeLists.txt +++ b/packages/PyTrilinos2/CMakeLists.txt @@ -245,6 +245,16 @@ IF(NOT DEFINED PyTrilinos2_BINDER_GCC_TOOLCHAIN) ELSE() list(APPEND BINDER_OPTIONS --gcc-toolchain=${PyTrilinos2_BINDER_GCC_TOOLCHAIN}) ENDIF() + +ASSERT_DEFINED( + Tpetra_INST_OPENMP +) +IF (Tpetra_INST_OPENMP) + list(APPEND BINDER_OPTIONS "-fopenmp") +ENDIF() +IF (NOT ${TPL_MPI_INCLUDE_DIRS} MATCH "") + list(APPEND BINDER_OPTIONS "-I${TPL_MPI_INCLUDE_DIRS}") +ENDIF() list(APPEND BINDER_OPTIONS -DNDEBUG) message("BINDER_OPTIONS='${BINDER_OPTIONS}'")