Skip to content

Commit 7d0f60f

Browse files
author
Corentin Derbois
committed
Add dependancies versions requirement
1 parent e24d4e1 commit 7d0f60f

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.appveyor.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,10 @@ environment:
1414
- MINICONDA: C:\Miniconda36-x64
1515
FFTW_INSTALL_MODE: conda-forge
1616
FFTW_ROOT:
17-
- MINICONDA: C:\Miniconda36
18-
FFTW_INSTALL_MODE: conda-forge
19-
FFTW_ROOT:
2017
# fftw from the "official" fftw website build
2118
- MINICONDA: C:\Miniconda36-x64
2219
FFTW_INSTALL_MODE: official
2320
FFTW_ROOT: C:\fftw_download
24-
- MINICONDA: C:\Miniconda36
25-
FFTW_INSTALL_MODE: official
26-
FFTW_ROOT: C:\fftw_download
2721

2822
matrix:
2923
exclude:
@@ -42,7 +36,7 @@ install:
4236
- conda config --add channels conda-forge
4337
- conda update -q conda
4438
- conda info -a
45-
- conda install xtensor
39+
- conda install xtensor=0.20.10 -c conda-forge
4640
- IF "%FFTW_INSTALL_MODE%"=="official" ( Powershell.exe -File appveyor_install_fftw.ps1 ) ELSE IF "%FFTW_INSTALL_MODE%"=="conda-forge" ( conda install fftw )
4741
- cd %APPVEYOR_BUILD_FOLDER%
4842
- mkdir build

CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ set(CMAKE_CXX_EXTENSIONS NO)
6565
include_directories(${XTENSOR_FFTW_INCLUDE_DIR})
6666

6767
# .. xtensor
68-
find_package(xtensor REQUIRED)
68+
set(xtensor_REQUIRED_VERSION 0.20.10)
69+
find_package(xtensor ${xtensor_REQUIRED_VERSION} REQUIRED)
6970
message(STATUS "Found xtensor: ${xtensor_INCLUDE_DIRS}/xtensor")
7071
include_directories(${xtensor_INCLUDE_DIRS})
7172

7273
# .. xtl
73-
find_package(xtl REQUIRED)
74+
set(xtl_REQUIRED_VERSION 0.6.7)
75+
find_package(xtl ${xtl_REQUIRED_VERSION} REQUIRED)
7476
message(STATUS "Found xtl: ${xtl_INCLUDE_DIRS}/xtl")
7577
include_directories(${xtl_INCLUDE_DIRS})
7678

@@ -163,4 +165,4 @@ configure_file(${PROJECT_NAME}.pc.in
163165
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
164166
@ONLY)
165167
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc"
166-
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
168+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ make install
4646
* [FFTW](http://www.fftw.org/) version 3
4747
* A compiler supporting C++14
4848

49+
| `xtensor-fftw` | `xtensor` | `xtl` | `fftw` |
50+
|----------------|-----------|---------|---------|
51+
| master | ^0.20.10 | ^0.6.7 | ^3.3.8 |
52+
4953
## Usage
5054

5155
_xtensor-fftw_ is a header-only library.

0 commit comments

Comments
 (0)