Skip to content

Commit 86ad446

Browse files
authored
Merge pull request #1588 from NCAR/ejh_fix_cmake
fix cmake build in autotools dist
2 parents cd0b55f + 51217ec commit 86ad446

File tree

10 files changed

+28
-11
lines changed

10 files changed

+28
-11
lines changed

Makefile.am

+2-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ if BUILD_DOCS
1010
DOC = doc
1111
endif
1212

13-
SUBDIRS = src tests examples ${DOC} scripts
14-
15-
EXTRA_DIST = CMakeLists.txt set_flags.am COPYRIGHT
13+
SUBDIRS = src tests examples ${DOC} scripts cmake
1614

15+
EXTRA_DIST = CMakeLists.txt set_flags.am COPYRIGHT cmake_config.h.in

cmake/Makefile.am

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
## This is the automake file for the cmake directory of the PIO
2+
## libraries. This directory holds files needed for the CMake build,
3+
## but not the autotools build.
4+
5+
# Ed Hartnett 8/19/19
6+
7+
# Cmake needs all these extra files to build.
8+
EXTRA_DIST = FindGPTL.cmake FindHDF5.cmake FindLIBRT.cmake \
9+
FindLIBZ.cmake FindMPE.cmake FindMPISERIAL.cmake FindNetCDF.cmake \
10+
FindPAPI.cmake FindPnetCDF.cmake FindSZIP.cmake LibCheck.cmake \
11+
LibFind.cmake LibMPI.cmake Makefile.am mpiexec.alcf mpiexec.ncsa \
12+
mpiexec.nersc mpiexec.nwscla mpiexec.olcf TryHDF5_HAS_SZIP.c \
13+
TryNetCDF_DAP.c TryNetCDF_PARALLEL.c TryNetCDF_PNETCDF.c

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,5 @@ AC_OUTPUT(Makefile
314314
examples/Makefile
315315
examples/c/Makefile
316316
examples/f03/Makefile
317+
cmake/Makefile
317318
scripts/Makefile)

examples/Makefile.am

+2
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ F03 = f03
77
endif # BUILD_FORTRAN
88

99
SUBDIRS = c ${F03}
10+
11+
EXTRA_DIST = CMakeLists.txt

examples/c/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ ADD_EXECUTABLE(darray_no_async darray_no_async.c)
3737
TARGET_LINK_LIBRARIES(darray_no_async pioc)
3838
add_dependencies(tests darray_no_async)
3939

40-
ADD_EXECUTABLE(darray_async darray_async.c)
41-
TARGET_LINK_LIBRARIES(darray_async pioc)
42-
add_dependencies(tests darray_async)
40+
# ADD_EXECUTABLE(darray_async darray_async.c)
41+
# TARGET_LINK_LIBRARIES(darray_async pioc)
42+
# add_dependencies(tests darray_async)
4343

4444
if (PIO_USE_MPISERIAL)
4545
add_test(NAME examplePio COMMAND examplePio)

examples/c/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TESTS = run_tests.sh
1616
endif # RUN_TESTS
1717

1818
# Distribute the test script.
19-
EXTRA_DIST = run_tests.sh
19+
EXTRA_DIST = run_tests.sh CMakeLists.txt example2.c
2020

2121
# Clean up files produced during testing.
2222
CLEANFILES = *.nc *.log *.clog2 *.slog2

src/clib/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ pioc_support.c pio_darray_int.c pio_get_nc.c pio_lists.c pio_nc4.c \
2525
pio_put_nc.c pio_spmd.c pio_get_vard.c pio_put_vard.c pio_internal.h \
2626
bget.h uthash.h pio_error.h
2727

28-
EXTRA_DIST = CMakeLists.txt
28+
EXTRA_DIST = CMakeLists.txt topology.c

src/gptl/Makefile.am

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ perf_mod.mod: perf_mod.$(OBJEXT)
2020
#if BUILD_FORTRAN
2121
#endif
2222

23-
EXTRA_DIST = CMakeLists.txt
23+
EXTRA_DIST = CMakeLists.txt GPTLget_memusage.c GPTLprint_memusage.c \
24+
GPTLutil.c f_wrappers.c gptl.c gptl_papi.c threadutil.c gptl.inc \
25+
gptl.h private.h

tests/cunit/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test_async_perf_SOURCES = test_async_perf.c test_common.c pio_tests.h
6666
test_darray_vard_SOURCES = test_darray_vard.c test_common.c pio_tests.h
6767

6868
# Distribute the test script.
69-
EXTRA_DIST = run_tests.sh
69+
EXTRA_DIST = run_tests.sh CMakeLists.txt test_darray_frame.c
7070

7171
# Clean up files produced during testing.
7272
CLEANFILES = *.nc *.log decomp*.txt *.clog2 *.slog2

tests/unit/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ TESTS = run_tests.sh
3030
endif # RUN_TESTS
3131

3232
# Distribute the test script.
33-
EXTRA_DIST = CMakeLists.txt run_tests.sh input.nl
33+
EXTRA_DIST = CMakeLists.txt run_tests.sh input.nl not_netcdf.ieee
3434

3535
# Clean up files produced during testing.
3636
CLEANFILES = *.nc *.log *.mod

0 commit comments

Comments
 (0)