mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
io_timer.c uses a parallel lib function
This commit is contained in:
parent
9b82f8c0ac
commit
2600c358a5
@ -21,7 +21,7 @@ endif ()
|
|||||||
set_target_properties (h5perf_serial PROPERTIES FOLDER perform)
|
set_target_properties (h5perf_serial PROPERTIES FOLDER perform)
|
||||||
|
|
||||||
if (HDF5_BUILD_PERFORM_STANDALONE)
|
if (HDF5_BUILD_PERFORM_STANDALONE)
|
||||||
#-- Adding test for h5perf_serial_alone
|
#-- Adding test for h5perf_serial_alone - io_timer.c includes
|
||||||
set (h5perf_serial_alone_SOURCES
|
set (h5perf_serial_alone_SOURCES
|
||||||
${HDF5_TOOLS_DIR}/lib/io_timer.c
|
${HDF5_TOOLS_DIR}/lib/io_timer.c
|
||||||
${HDF5_TOOLS_TEST_PERFORM_SOURCE_DIR}/sio_perf.c
|
${HDF5_TOOLS_TEST_PERFORM_SOURCE_DIR}/sio_perf.c
|
||||||
@ -32,10 +32,10 @@ if (HDF5_BUILD_PERFORM_STANDALONE)
|
|||||||
target_include_directories (h5perf_serial_alone PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TOOLS_DIR}/lib;$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
target_include_directories (h5perf_serial_alone PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};${HDF5_TOOLS_DIR}/lib;$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>")
|
||||||
if (NOT BUILD_SHARED_LIBS)
|
if (NOT BUILD_SHARED_LIBS)
|
||||||
TARGET_C_PROPERTIES (h5perf_serial_alone STATIC)
|
TARGET_C_PROPERTIES (h5perf_serial_alone STATIC)
|
||||||
target_link_libraries (h5perf_serial_alone PRIVATE ${HDF5_LIB_TARGET})
|
target_link_libraries (h5perf_serial_alone PRIVATE ${HDF5_LIB_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>")
|
||||||
else ()
|
else ()
|
||||||
TARGET_C_PROPERTIES (h5perf_serial_alone SHARED)
|
TARGET_C_PROPERTIES (h5perf_serial_alone SHARED)
|
||||||
target_link_libraries (h5perf_serial_alone PRIVATE ${HDF5_LIBSH_TARGET})
|
target_link_libraries (h5perf_serial_alone PRIVATE ${HDF5_LIBSH_TARGET} "$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_LIBRARIES}>")
|
||||||
endif ()
|
endif ()
|
||||||
set_target_properties (h5perf_serial_alone PROPERTIES FOLDER perform)
|
set_target_properties (h5perf_serial_alone PROPERTIES FOLDER perform)
|
||||||
set_property (TARGET h5perf_serial_alone
|
set_property (TARGET h5perf_serial_alone
|
||||||
|
@ -19,7 +19,6 @@
|
|||||||
#include "h5tools.h"
|
#include "h5tools.h"
|
||||||
#include "h5tools_utils.h"
|
#include "h5tools_utils.h"
|
||||||
#else
|
#else
|
||||||
#undef H5_HAVE_PARALLEL
|
|
||||||
#include "io_timer.h"
|
#include "io_timer.h"
|
||||||
#include "sio_standalone.h"
|
#include "sio_standalone.h"
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user