Skip to content

Commit 6d8dd43

Browse files
committed
Upgraded to xtensor 0.21.10
1 parent cfcf419 commit 6d8dd43

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install:
3535
# Install mamba
3636
- conda install mamba -c conda-forge
3737
# Install host dependencies
38-
- mamba install openimageio=2.1.10 libsndfile=1.0.28 zlib=1.2.11 highfive=2.1.1 blosc gdal nlohmann_json google-cloud-cpp=1.19.0 aws-sdk-cpp xtensor=0.21.9 cpp-filesystem -c conda-forge
38+
- mamba install openimageio=2.1.10 libsndfile=1.0.28 zlib=1.2.11 highfive=2.1.1 blosc gdal nlohmann_json google-cloud-cpp=1.19.0 aws-sdk-cpp xtensor=0.21.10 cpp-filesystem -c conda-forge
3939
- mamba install ffmpeg=4.1.3 -c conda-forge # openimageio is missing ffmpedg as a runtime requirement
4040
# Install build dependencies
4141
- mamba install cmake -c conda-forge

CMakeLists.txt

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ message(STATUS "Building xtensor-io v${${PROJECT_NAME}_VERSION}")
4242
# Dependencies
4343
# ============
4444

45-
set (xtensor_REQUIRED_VERSION 0.21.9)
45+
set (xtensor_REQUIRED_VERSION 0.21.10)
4646
find_package(xtensor ${xtensor_REQUIRED_VERSION} REQUIRED)
4747

4848
message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
@@ -51,20 +51,20 @@ message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
5151
# =====
5252

5353
set(XTENSOR_IO_HEADERS
54-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xaudio.hpp
55-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xchunk_store_manager.hpp
56-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xfile_array.hpp
57-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xgdal.hpp
58-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xhighfive.hpp
59-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/ximage.hpp
60-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_binary.hpp
61-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_blosc.hpp
62-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_disk_handler.hpp
63-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_gcs_handler.hpp
64-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_gzip.hpp
65-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xnpz.hpp
66-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xtensor-io.hpp
67-
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xtensor_io_config.hpp
54+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xaudio.hpp
55+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xchunk_store_manager.hpp
56+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xfile_array.hpp
57+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xgdal.hpp
58+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xhighfive.hpp
59+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/ximage.hpp
60+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_binary.hpp
61+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_blosc.hpp
62+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_disk_handler.hpp
63+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_gcs_handler.hpp
64+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xio_gzip.hpp
65+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xnpz.hpp
66+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xtensor-io.hpp
67+
${XTENSOR_IO_INCLUDE_DIR}/xtensor-io/xtensor_io_config.hpp
6868
)
6969

7070
OPTION(BUILD_TESTS "xtensor-io test suite" OFF)
@@ -79,14 +79,13 @@ add_library(xtensor-io INTERFACE)
7979
include_directories(${GTEST_INCLUDE_DIRS})
8080

8181
target_include_directories(xtensor-io
82-
INTERFACE
82+
INTERFACE
8383
$<BUILD_INTERFACE:${XTENSOR_IO_INCLUDE_DIR}>
8484
$<INSTALL_INTERFACE:include>
8585
)
8686

8787
target_link_libraries(xtensor-io
88-
INTERFACE
89-
xtl
88+
INTERFACE
9089
xtensor
9190
)
9291

@@ -99,15 +98,15 @@ if (${OIIO_FOUND})
9998
message(STATUS "OpenImageIO found, image file support enabled")
10099
include_directories(${OIIO_INCLUDE_DIRS})
101100
target_include_directories(xtensor-io
102-
INTERFACE
101+
INTERFACE
103102
$<BUILD_INTERFACE:${OIIO_INCLUDE_DIRS}>
104103
)
105104
target_link_libraries(xtensor-io
106-
INTERFACE
105+
INTERFACE
107106
${OIIO_LIBRARIES}
108107
)
109108
else()
110-
message(WARNING "OpenImageIO not found - install OpenImageIO for image support")
109+
message(WARNING "OpenImageIO not found - install OpenImageIO for image support")
111110
endif()
112111

113112
message(STATUS "Trying to find SndFile for xaudio support")
@@ -116,15 +115,15 @@ if (${LIBSNDFILE_FOUND})
116115
message(STATUS "SndFile found, audio file support enabled")
117116
include_directories(${LIBSNDFILE_INCLUDE_DIRS})
118117
target_include_directories(xtensor-io
119-
INTERFACE
118+
INTERFACE
120119
$<BUILD_INTERFACE:${LIBSNDFILE_INCLUDE_DIRS}>
121120
)
122121
target_link_libraries(xtensor-io
123-
INTERFACE
122+
INTERFACE
124123
${LIBSNDFILE_LIBRARIES}
125124
)
126125
else()
127-
message(WARNING "SndFile (libsndfile) not found - install libsndfile for audio support")
126+
message(WARNING "SndFile (libsndfile) not found - install libsndfile for audio support")
128127
endif()
129128

130129
message(STATUS "Trying to find ZLIB for npz file support")
@@ -133,15 +132,15 @@ if (${ZLIB_FOUND})
133132
message(STATUS "ZLIB found, npz file support enabled")
134133
include_directories(${ZLIB_INCLUDE_DIRS})
135134
target_include_directories(xtensor-io
136-
INTERFACE
137-
$<BUILD_INTERFACE:${ZLIB_INCLUDE_DIRS}>
135+
INTERFACE
136+
$<BUILD_INTERFACE:${ZLIB_INCLUDE_DIRS}>
138137
)
139138
target_link_libraries(xtensor-io
140-
INTERFACE
139+
INTERFACE
141140
${ZLIB_LIBRARIES}
142141
)
143142
else()
144-
message(WARNING "ZLIB not found - install zlib for xnpz file support")
143+
message(WARNING "ZLIB not found - install zlib for xnpz file support")
145144
endif()
146145

147146
message(STATUS "Trying to find HighFive for npz file support")
@@ -152,11 +151,11 @@ if (${HighFive_FOUND} AND ${HDF5_FOUND})
152151
find_package(HDF5 REQUIRED)
153152
get_target_property(HighFive_INCLUDE_DIRECTORIES_EXTRACTED HighFive INTERFACE_INCLUDE_DIRECTORIES)
154153
target_include_directories(xtensor-io
155-
INTERFACE
154+
INTERFACE
156155
${HighFive_INCLUDE_DIRECTORIES_EXTRACTED}
157156
)
158157
target_link_libraries(xtensor-io
159-
INTERFACE
158+
INTERFACE
160159
${HDF5_LIBRARIES}
161160
)
162161
else()
@@ -169,27 +168,27 @@ if (${Blosc_FOUND})
169168
message(STATUS "Blosc found, Blosc file support enabled")
170169
include_directories(${Blosc_INCLUDE_DIRS})
171170
target_include_directories(xtensor-io
172-
INTERFACE
173-
$<BUILD_INTERFACE:${Blosc_INCLUDE_DIRS}>
171+
INTERFACE
172+
$<BUILD_INTERFACE:${Blosc_INCLUDE_DIRS}>
174173
)
175174
target_link_libraries(xtensor-io
176-
INTERFACE
175+
INTERFACE
177176
${Blosc_LIBRARIES}
178177
)
179178
else()
180-
message(WARNING "Blosc not found - install blosc for Blosc file support")
179+
message(WARNING "Blosc not found - install blosc for Blosc file support")
181180
endif()
182181

183182
message(STATUS "Trying to find GDAL for geospatial raster file support")
184183
find_package(GDAL)
185184
if(${GDAL_FOUND})
186185
message(STATUS "GDAL ${GDAL_VERSION} found, geospatial raster file support enabled")
187186
target_include_directories(xtensor-io
188-
INTERFACE
187+
INTERFACE
189188
${GDAL_INCLUDE_DIRS}
190189
)
191190
target_link_libraries(xtensor-io
192-
INTERFACE
191+
INTERFACE
193192
${GDAL_LIBRARIES}
194193
)
195194
else()

0 commit comments

Comments
 (0)