Skip to content

Commit c1fc50f

Browse files
committed
fix: Add pcu_pnompi_types.h to install headers
Also update TriBITS package file. Signed-off-by: Aiden Woodruff <[email protected]>
1 parent 5dd17e3 commit c1fc50f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

pcu/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ set(HEADERS
3737
reel/reel.h
3838
)
3939

40+
if(SCOREC_NO_MPI)
41+
set(HEADERS ${HEADERS} pcu_pnompi_types.h)
42+
endif()
43+
4044
# Add the pcu library
4145
add_library(pcu ${SOURCES})
4246
# this compiler definition is needed to silence warnings caused by the openmpi CXX

pcu/pkg_tribits.cmake

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,28 @@ set(SOURCES
4141
pcu_mpi.c
4242
pcu_msg.c
4343
pcu_order.c
44-
pcu_pmpi.c
4544
pcu_util.c
4645
noto/noto_malloc.c
4746
reel/reel.c
4847
)
4948

49+
if(SCOREC_NO_MPI)
50+
set(SOURCES ${SOURCES} pcu_pnompi.c)
51+
else()
52+
set(SOURCES ${SOURCES} pcu_pmpi.c)
53+
endif()
54+
5055
set(HEADERS
5156
PCU.h
5257
pcu_io.h
5358
pcu_util.h
5459
noto/noto_malloc.h
5560
reel/reel.h)
5661

62+
if(SCOREC_NO_MPI)
63+
set(HEADERS ${HEADERS} pcu_pnompi_types.h)
64+
endif()
65+
5766
tribits_add_library(
5867
pcu
5968
HEADERS ${HEADERS}

0 commit comments

Comments
 (0)