Skip to content

Commit a4c418b

Browse files
committed
bump cmake to fix docker
1 parent 71bb164 commit a4c418b

File tree

6 files changed

+9
-15
lines changed

6 files changed

+9
-15
lines changed

CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
#
1616
# Authors:
1717
# CIL Developers, listed at: https://github.com/TomographicImaging/CIL/blob/master/NOTICE.txt
18-
19-
if(APPLE)
20-
cmake_minimum_required(VERSION 3.16)
21-
else()
22-
cmake_minimum_required(VERSION 3.5)
23-
endif()
18+
cmake_minimum_required(VERSION 3.20)
2419

2520
if(NOT SKBUILD_PROJECT_NAME)
2621
set(SKBUILD_PROJECT_NAME cil)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ build-backend = "scikit_build_core.build"
99

1010
[tool.scikit-build]
1111
minimum-version = "build-system.requires"
12-
cmake.version = ">=3.5"
12+
cmake.version = ">=3.20"
1313
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
1414
sdist.include = ["Wrappers/Python/cil/version.py"]
1515
sdist.exclude = ["scripts", "docs", "Wrappers/Python/data", "Wrappers/Python/test", ".*"]

recipe/meta.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ requirements:
4242
- pip
4343
- setuptools >=64
4444
- setuptools_scm >=8
45-
- cmake # [not osx]
46-
- cmake >=3.16 # [osx]
45+
- cmake >=3.20
4746
- libgcc-ng # [linux]
4847
- libstdcxx-ng # [linux]
4948
- _openmp_mutex # [linux]

scripts/create_local_env_for_cil_development.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ echo "Environment name $name"
4848
conda_args=(create --name="$name"
4949
python="$python"
5050
numpy="$numpy"
51-
cmake'>=3.16'
51+
cmake'>=3.20'
5252
dxchange
5353
h5py
5454
ipp'>=2021.10'
@@ -99,7 +99,7 @@ else
9999
)
100100
fi
101101

102-
conda "${conda_args[@]}"
102+
conda "${conda_args[@]}"
103103
if [[ -n "${pip_install_pkgs[@]}" ]]; then
104104
python -m pip install "${pip_install_pkgs[@]}"
105-
fi
105+
fi

scripts/requirements-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ dependencies:
2929
- python-wget
3030
- scikit-image
3131
- packaging
32-
- cmake >=3.16
32+
- cmake >=3.20
3333
- setuptools <71
3434
- ipp-include=2021.12
3535
- ipp-devel=2021.12

src/Core/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ endif()
6666
if(IPP_CORE AND IPP_S AND IPP_VM AND IPP_I)
6767
set(USE_IPP TRUE)
6868
message("IPP libraries found")
69-
get_filename_component(LIB_BASE ${IPP_CORE}/../.. REALPATH)
69+
file(REAL_PATH ${IPP_CORE}/../.. LIB_BASE)
7070
find_file(IPP_INCLUDE ipp.h ${LIB_BASE} PATH_SUFFIXES include include/ipp)
71-
get_filename_component(IPP_INCLUDE ${IPP_INCLUDE}/.. REALPATH)
71+
cmake_path(GET IPP_INCLUDE PARENT_PATH IPP_INCLUDE)
7272
else()
7373
set(USE_IPP FALSE)
7474
message("IPP libraries not found, FBP_filtering not in build")

0 commit comments

Comments
 (0)