mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-21 07:51:46 +08:00
93ac9b0aeb
* Enable usage of new-style references with dimension scale APIs * Add API to check if an object ID represents a native connector object * Modified code to use new function H5DSwith_new_ref to determine if new references should be used with Dimension Scales. The new function return TRUE if non-native connector is used or if H5_DIMENSION_SCALES_WITH_NEW_REF varible is define at configure time (--enable-dimension-scales-with-new-ref). Tested on jelly. ToDo: generate testing file on BE system and enable the test; add flag to CMake; test netCDF-4 with the new references. * Adding new test files generated on BE system (hedgehog) created by 32 and 64-bit library. test_ds chokes on test_ds_le_new_ref.h5 on BE system; test passes for test_ds_be_new_ref-32bit.h5 for the 32-bit library and fails for the 64-bit library, and vice versa. I am checking the files for further investigation; but current implementation of the new references is not portable between LE and BE systems, and 32 and 64-bit systems. * Minor fixes for testing issues * Update test_ds.c Enabled broken test; tests pass now. * Update RELEASE.txt Documented new option to use new references with the HDF5 dimension scales APIs (H5DS*). * Update MANIFEST for new 32-bit new-style references test file for H5DS APIs * Update 'dimension scales w/ new-style refs' feature based on review Co-authored-by: Elena <epourmal@hdfgroup.org>
40 lines
1.3 KiB
CMake
40 lines
1.3 KiB
CMake
cmake_minimum_required (VERSION 3.12)
|
|
project (HDF5_HL C)
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# Option to use new-style references with dimension scale APIs
|
|
#-----------------------------------------------------------------------------
|
|
option (HDF5_DIMENSION_SCALES_NEW_REF "Use new-style references with dimension scale APIs" OFF)
|
|
if (HDF5_DIMENSION_SCALES_NEW_REF)
|
|
set (H5_DIMENSION_SCALES_WITH_NEW_REF 1)
|
|
endif ()
|
|
|
|
#-----------------------------------------------------------------------------
|
|
# List Source files
|
|
#-----------------------------------------------------------------------------
|
|
|
|
add_subdirectory (src)
|
|
|
|
# Build HDF5 Tools
|
|
if (HDF5_BUILD_TOOLS)
|
|
#-----------------------------------------------------------------------------
|
|
#-- Option to build the High level Tools
|
|
#-----------------------------------------------------------------------------
|
|
if (EXISTS "${HDF5_HL_SOURCE_DIR}/tools" AND IS_DIRECTORY "${HDF5_HL_SOURCE_DIR}/tools")
|
|
option (HDF5_BUILD_HL_TOOLS "Build HDF5 HL Tools" ON)
|
|
if (HDF5_BUILD_HL_TOOLS)
|
|
add_subdirectory (tools)
|
|
endif ()
|
|
endif ()
|
|
endif ()
|
|
|
|
#-- Add High Level Examples
|
|
if (HDF5_BUILD_EXAMPLES)
|
|
add_subdirectory (examples)
|
|
endif ()
|
|
|
|
#-- Build the Unit testing if requested
|
|
if (BUILD_TESTING AND HDF5_TEST_SERIAL)
|
|
add_subdirectory (test)
|
|
endif ()
|