Skip to content

Commit

Permalink
fix: Add pcu_pnompi_types.h to install headers
Browse files Browse the repository at this point in the history
Also update TriBITS package file.

Signed-off-by: Aiden Woodruff <woodra@rpi.edu>
  • Loading branch information
bobpaw committed Sep 11, 2024
1 parent 98f0659 commit 07727ed
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions pcu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 10 additions & 1 deletion pcu/pkg_tribits.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,28 @@ 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
pcu_util.h
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}
Expand Down

0 comments on commit 07727ed

Please sign in to comment.