Skip to content

Commit 2f63137

Browse files
committed
feat(cxx): bump C++ standard to 20
For glaze. And CMake minimum required to 3.25.1 (Ubuntu 24.04 version).
1 parent 0b70f3a commit 2f63137

File tree

21 files changed

+25
-24
lines changed

21 files changed

+25
-24
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
cmake_minimum_required(VERSION 3.16.3)
1+
cmake_minimum_required(VERSION 3.25.1)
22
project(WebAssemblyInterface)
33

4-
set(CMAKE_CXX_STANDARD 17)
4+
set(CMAKE_CXX_STANDARD 20)
55

66
if(POLICY CMP0135)
77
cmake_policy(SET CMP0135 NEW)

docs/cxx/tutorial/hello_pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ cmake_minimum_required(VERSION 3.16)
107107
project(hello-pipeline)
108108
109109
# Use C++17 or newer with itk-wasm
110-
set(CMAKE_CXX_STANDARD 17)
110+
set(CMAKE_CXX_STANDARD 20)
111111
112112
# We always want to build against the WebAssemblyInterface module.
113113
set(itk_components

docs/cxx/tutorial/inputs_outputs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ cmake_minimum_required(VERSION 3.16)
110110
project(inputs-outputs)
111111
112112
# Use C++17 or newer with itk-wasm
113-
set(CMAKE_CXX_STANDARD 17)
113+
set(CMAKE_CXX_STANDARD 20)
114114
115115
# We always want to build against the WebAssemblyInterface module.
116116
set(itk_components

examples/different-input-types/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22
project(different-input-types)
33

44
# Use C++17 or newer with itk-wasm
5-
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD 20)
66

77
# We always want to build against the WebAssemblyInterface module.
88
set(itk_components

examples/hello-pipeline/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22
project(hello-pipeline)
33

44
# Use C++17 or newer with itk-wasm
5-
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD 20)
66

77
# We always want to build against the WebAssemblyInterface module.
88
set(itk_components

examples/inputs-outputs/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22
project(inputs-outputs)
33

44
# Use C++17 or newer with itk-wasm
5-
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD 20)
66

77
# We always want to build against the WebAssemblyInterface module.
88
set(itk_components

examples/mean-squares-versor-registration/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
22
project(mean-squares-versor-registration)
33

44
# Use C++17 or newer with itk-wasm
5-
set(CMAKE_CXX_STANDARD 17)
5+
set(CMAKE_CXX_STANDARD 20)
66

77
# We always want to build against the WebAssemblyInterface module.
88
set(itk_components

packages/compare-images/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.16)
22
project(itkwasm-compare-images LANGUAGES CXX)
33

4-
set(CMAKE_CXX_STANDARD 17)
4+
set(CMAKE_CXX_STANDARD 20)
55

66
if(EMSCRIPTEN)
77
set(io_components

packages/compress-stringify/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.16)
22
project(compress-stringify)
33

4-
set(CMAKE_CXX_STANDARD 17)
4+
set(CMAKE_CXX_STANDARD 20)
55

66
include(${CMAKE_CURRENT_SOURCE_DIR}/BuildZstd.cmake)
77

packages/core/typescript/itk-wasm/test/pipelines/bindgen-interface-types-pipeline/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.10)
22
project(bindgen-interface-types-test)
33

4-
set(CMAKE_CXX_STANDARD 17)
4+
set(CMAKE_CXX_STANDARD 20)
55

66
set(io_components)
77
if(NOT EMSCRIPTEN)

0 commit comments

Comments
 (0)