Skip to content

Commit be18b99

Browse files
committed
Small fixes to work with Mac OS.
1 parent 73a57a8 commit be18b99

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

77
add_subdirectory(include)
88

9-
find_package(HDF5 REQUIRED COMPONENTS CXX)
10-
target_link_libraries(binsparse INTERFACE ${HDF5_CXX_LIBRARIES})
11-
target_include_directories(binsparse INTERFACE . ${HDF5_INCLUDE_DIRS})
9+
find_package(HDF5 REQUIRED COMPONENTS C CXX)
10+
target_link_libraries(binsparse INTERFACE ${HDF5_C_LIBRARIES} hdf5::hdf5_cpp)
1211

1312
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
1413
# Dependencies needed only for examples/test

include/binsparse/hdf5_tools.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <H5Cpp.h>
44
#include <cassert>
5+
#include <cstdint>
56
#include <ranges>
67
#include <type_traits>
78
#include <vector>

include/binsparse/type_info.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ struct type_info<uint64_t> {
4545
}
4646
};
4747

48-
template <>
49-
struct type_info<std::size_t> {
48+
template <typename T>
49+
requires std::is_same_v<T, std::size_t>
50+
struct type_info<T> {
5051
static constexpr auto label() noexcept {
5152
return "uint64";
5253
}

0 commit comments

Comments
 (0)