diff --git a/pcu/CMakeLists.txt b/pcu/CMakeLists.txt index 822d9f346..a02202a7c 100644 --- a/pcu/CMakeLists.txt +++ b/pcu/CMakeLists.txt @@ -37,6 +37,10 @@ set(HEADERS reel/reel.h ) +if(SCOREC_NO_MPI) + set(HEADERS ${HEADERS} pcu_pnompi_types.h) +endif() + # Add the pcu library add_library(pcu ${SOURCES}) # this compiler definition is needed to silence warnings caused by the openmpi CXX diff --git a/pcu/pkg_tribits.cmake b/pcu/pkg_tribits.cmake index 0c43fc64a..2a46a126b 100644 --- a/pcu/pkg_tribits.cmake +++ b/pcu/pkg_tribits.cmake @@ -41,12 +41,17 @@ set(SOURCES pcu_mpi.c pcu_msg.c pcu_order.c - pcu_pmpi.c pcu_util.c noto/noto_malloc.c reel/reel.c ) +if(SCOREC_NO_MPI) + set(SOURCES ${SOURCES} pcu_pnompi.c) +else() + set(SOURCES ${SOURCES} pcu_pmpi.c) +endif() + set(HEADERS PCU.h pcu_io.h @@ -54,6 +59,10 @@ set(HEADERS noto/noto_malloc.h reel/reel.h) +if(SCOREC_NO_MPI) + set(HEADERS ${HEADERS} pcu_pnompi_types.h) +endif() + tribits_add_library( pcu HEADERS ${HEADERS}