diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-12-01 19:34:10 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-12-01 19:34:10 (GMT) |
commit | cf09927977d43fe5036224f4c3d163d0218bb8d3 (patch) | |
tree | cce11363f3655b06468b546cd72b1cc47046d9fa | |
parent | e26a95c95a62ddf15fb509ff2273b274f648384d (diff) | |
download | hdf5-cf09927977d43fe5036224f4c3d163d0218bb8d3.zip hdf5-cf09927977d43fe5036224f4c3d163d0218bb8d3.tar.gz hdf5-cf09927977d43fe5036224f4c3d163d0218bb8d3.tar.bz2 |
H5detect and make_libsettings need the include folder
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a825958..616b53d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -613,6 +613,9 @@ set (H5_PRIVATE_HEADERS #----------------------------------------------------------------------------- add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c) TARGET_C_PROPERTIES (H5detect STATIC " " " ") +if (H5_HAVE_PARALLEL AND MPI_C_FOUND) + target_include_directories (H5detect PUBLIC ${MPI_C_INCLUDE_DIRS}) +endif () if (MSVC OR MINGW) target_link_libraries (H5detect "ws2_32.lib") endif () @@ -627,6 +630,9 @@ add_custom_command ( add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c) TARGET_C_PROPERTIES (H5make_libsettings STATIC " " " ") +if (H5_HAVE_PARALLEL AND MPI_C_FOUND) + target_include_directories (H5make_libsettings PUBLIC ${MPI_C_INCLUDE_DIRS}) +endif () if (MSVC OR MINGW) target_link_libraries (H5make_libsettings "ws2_32.lib") endif () |