summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-08-29 19:43:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-08-29 19:43:49 (GMT)
commit7118d30a53a10adf7346527415d2fc07d5eb3b12 (patch)
tree12262f544c6f5551efaf3b458ae415bb6123bbb8 /src/CMakeLists.txt
parent256629d7565971ea5231b4c14961a063b891b3af (diff)
downloadhdf5-7118d30a53a10adf7346527415d2fc07d5eb3b12.zip
hdf5-7118d30a53a10adf7346527415d2fc07d5eb3b12.tar.gz
hdf5-7118d30a53a10adf7346527415d2fc07d5eb3b12.tar.bz2
Fix EXISTS test syntax and add toolchain
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index fa5828a..57535bc 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -928,7 +928,7 @@ if (LOCAL_BATCH_TEST)
endif ()
endif ()
-if (NOT EXISTS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c)
+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}>")
target_compile_definitions(H5detect PUBLIC ${HDF_EXTRA_C_FLAGS} ${HDF_EXTRA_FLAGS})