-
-
Notifications
You must be signed in to change notification settings - Fork 298
Move h5repacktst file generation to h5repackgentest #5564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
ab7ad5d
9a56491
e48eab5
d5dc41b
c2460d0
61b1a35
6b4f5d8
83a53b7
566e70b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,19 +27,19 @@ set (REPACK_COMMON_SOURCES | |
${HDF5_TOOLS_SRC_H5REPACK_SOURCE_DIR}/h5repack_verify.c | ||
${HDF5_TOOLS_SRC_H5REPACK_SOURCE_DIR}/h5repack.c | ||
) | ||
# Add h5repack test executable | ||
add_executable (h5repacktest ${REPACK_COMMON_SOURCES} ${HDF5_TOOLS_TEST_H5REPACK_SOURCE_DIR}/h5repacktst.c) | ||
target_include_directories (h5repacktest | ||
PRIVATE "${HDF5_TOOLS_SRC_H5REPACK_SOURCE_DIR};${HDF5_TOOLS_ROOT_DIR}/lib;${HDF5_SRC_INCLUDE_DIRS};${HDF5_TEST_SRC_DIR};${HDF5_SRC_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" | ||
) | ||
if (BUILD_STATIC_LIBS) | ||
if (HDF5_BUILD_STATIC_TOOLS) | ||
TARGET_C_PROPERTIES (h5repacktest STATIC) | ||
target_link_libraries (h5repacktest PRIVATE ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET}) | ||
target_link_libraries (h5repacktest PRIVATE ${HDF5_TOOLS_LIB_TARGET} ${HDF5_TEST_LIB_TARGET} h5repackgentest) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since the tool gentest object libraries are currently only built when |
||
else () | ||
TARGET_C_PROPERTIES (h5repacktest SHARED) | ||
target_link_libraries (h5repacktest PRIVATE ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET}) | ||
target_link_libraries (h5repacktest PRIVATE ${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TEST_LIBSH_TARGET} h5repackgentest) | ||
endif () | ||
set_target_properties (h5repacktest PROPERTIES FOLDER tools) | ||
|
||
#----------------------------------------------------------------------------- | ||
# If plugin library tests can be tested | ||
#----------------------------------------------------------------------------- | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is an issue where we need to determine the full purpose of
HDF5_BUILD_STATIC_TOOLS
and align between it andBUILD_STATIC_LIBS
. Since this is a regular test program, it should probably be usingBUILD_STATIC_LIBS
as before rather thanHDF5_BUILD_STATIC_TOOLS
. But, when it comes time to link against the tools library we need to checkHDF5_BUILD_STATIC_TOOLS
to link against the correct one (though we should probably solve this higher up and just give lower level CMake code a single target to link against unconditionally).