summaryrefslogtreecommitdiffstats
path: root/hl/examples
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-05-09 19:29:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-05-09 19:29:44 (GMT)
commit37c27afde06c02416b6cc8bf518fea534aef0af6 (patch)
tree043fe9bcc9a2522bfe5ccabbaf1e67570611effe /hl/examples
parentdcc66a4f157ace0858b788228550f3e104df3242 (diff)
downloadhdf5-37c27afde06c02416b6cc8bf518fea534aef0af6.zip
hdf5-37c27afde06c02416b6cc8bf518fea534aef0af6.tar.gz
hdf5-37c27afde06c02416b6cc8bf518fea534aef0af6.tar.bz2
Fix MPI on Windows by adding MPI include folder
Diffstat (limited to 'hl/examples')
-rw-r--r--hl/examples/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/examples/CMakeLists.txt b/hl/examples/CMakeLists.txt
index 2f9019d..97c6de5 100644
--- a/hl/examples/CMakeLists.txt
+++ b/hl/examples/CMakeLists.txt
@@ -28,7 +28,7 @@ set (examples
foreach (example ${examples})
add_executable (hl_ex_${example} ${HDF5_HL_EXAMPLES_SOURCE_DIR}/${example}.c)
- target_include_directories(hl_ex_${example} PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR}")
+ target_include_directories(hl_ex_${example} PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
TARGET_C_PROPERTIES (hl_ex_${example} STATIC)
target_link_libraries (hl_ex_${example} PRIVATE ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET})
set_target_properties (hl_ex_${example} PROPERTIES FOLDER examples/hl)