Skip to content

Commit c26110f

Browse files
authored
Conditionally include HDF5 parsers based on library availability. (#9)
1 parent 157c9af commit c26110f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.24)
22

33
project(uzuki2
4-
VERSION 1.1.0
4+
VERSION 1.1.1
55
DESCRIPTION "Storing simple R lists inside HDF5 or JSON"
66
LANGUAGES CXX)
77

include/uzuki2/uzuki2.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
* @brief Parse an R list from a HDF5 or JSON file.
1212
*/
1313

14+
#if __has_include("H5Cpp.h")
1415
#include "parse_hdf5.hpp"
16+
#endif
1517
#include "parse_json.hpp"
1618

1719
#endif

0 commit comments

Comments
 (0)