diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-04-26 22:19:20 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-04-26 22:19:20 (GMT) |
commit | 61d818aedafea9f2d5a3a50d78269fb14722b39f (patch) | |
tree | 3aee8e7895da0fe733610525aaae38f7a643de21 /src/CMakeLists.txt | |
parent | 2347bffaa2d48b62a22575fbc93b1f5c2716d8d4 (diff) | |
download | hdf5-61d818aedafea9f2d5a3a50d78269fb14722b39f.zip hdf5-61d818aedafea9f2d5a3a50d78269fb14722b39f.tar.gz hdf5-61d818aedafea9f2d5a3a50d78269fb14722b39f.tar.bz2 |
TRILABS-19 add mpi libs to utility programs
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4c47e17..ea4640e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -853,11 +853,11 @@ endif () # specific type checks inside #----------------------------------------------------------------------------- add_executable (H5detect ${HDF5_SRC_DIR}/H5detect.c) -target_include_directories(H5detect PRIVATE ${HDF5_BINARY_DIR}) +target_include_directories(H5detect PRIVATE "${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}") target_compile_definitions(H5detect PUBLIC ${HDF_EXTRA_C_FLAGS} ${HDF_EXTRA_FLAGS}) TARGET_C_PROPERTIES (H5detect STATIC) target_link_libraries (H5detect - PRIVATE $<$<PLATFORM_ID:Windows>:ws2_32.lib> + PRIVATE $<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}> $<$<PLATFORM_ID:Windows>:ws2_32.lib> INTERFACE $<$<PLATFORM_ID:Emscripten>:"-O0"> ) @@ -869,11 +869,11 @@ add_custom_command ( ) add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c) -target_include_directories(H5make_libsettings PRIVATE ${HDF5_BINARY_DIR}) +target_include_directories(H5make_libsettings PRIVATE "${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}") target_compile_definitions(H5make_libsettings PUBLIC ${HDF_EXTRA_C_FLAGS} ${HDF_EXTRA_FLAGS}) TARGET_C_PROPERTIES (H5make_libsettings STATIC) target_link_libraries (H5make_libsettings - PRIVATE $<$<PLATFORM_ID:Windows>:ws2_32.lib> + PRIVATE $<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}> $<$<PLATFORM_ID:Windows>:ws2_32.lib> INTERFACE $<$<PLATFORM_ID:Emscripten>:"-O0"> ) |