summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLarry Knox <lrknox@hdfgroup.org>2018-12-28 22:50:48 (GMT)
committerLarry Knox <lrknox@hdfgroup.org>2018-12-28 22:50:48 (GMT)
commit126d1e6176a490b9d4c73b1c7a75d697e9c7162c (patch)
treee70936e6767fa8fe9a46dd4dad2637fb10cdb39c /src
parentba095e6a53a919c9753463c3800a26b180b7a135 (diff)
downloadhdf5-126d1e6176a490b9d4c73b1c7a75d697e9c7162c.zip
hdf5-126d1e6176a490b9d4c73b1c7a75d697e9c7162c.tar.gz
hdf5-126d1e6176a490b9d4c73b1c7a75d697e9c7162c.tar.bz2
Add .lsf batch scripts and insert the build directory into the scripts
during configuration.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 40b64f5..17325b0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -943,6 +943,19 @@ if (BUILD_SHARED_LIBS)
file (MAKE_DIRECTORY "${HDF5_BINARY_DIR}/shared")
endif ()
+# This should perhaps be some kind of foreach or for loop for all of the files in the bin/batch directory.
+# For today I'll do it for the two that I want to try.
+if (LOCAL_BATCH_TEST)
+ configure_file (
+ ${HDF5_SOURCE_DIR}/bin/batch/ctestP.lsf.in.cmake
+ ${HDF5_SOURCE_DIR}/bin/batch/ctestP.lsf
+ )
+ configure_file (
+ ${HDF5_SOURCE_DIR}/bin/batch/ctestS.lsf.in.cmake
+ ${HDF5_SOURCE_DIR}/bin/batch/ctestS.lsf
+ )
+)
+
if (NOT EXISTS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c)
add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c)
target_include_directories(H5detect PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")