Skip to content

Commit 7616825

Browse files
committed
build(macos): Use C++17
To address: In file included from src/itkWASMImageIOBase.cxx:18: In file included from include/itkWASMImageIOBase.h:23: In file included from Modules/IO/ImageBase/include/itkImageIOBase.h:30: In file included from Modules/Core/Common/include/itkSymmetricSecondRankTensor.h:29: In file included from Modules/Core/Common/include/itkSymmetricEigenAnalysis.h:1104: In file included from Modules/Core/Common/include/itkSymmetricEigenAnalysis.hxx:22: Modules/Core/Common/include/itkMakeUniqueForOverwrite.h:76:14: error: no member named 'make_unique_for_overwrite' in namespace 'std' We could revisit after the GitHub Action Hosted Runner is updated from macos-11 to macos-12. Windows needs 20 to avoid compile errors.
1 parent 9234e1a commit 7616825

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMakeLists.txt

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

4-
set(CMAKE_CXX_STANDARD 20)
4+
if(WIN32)
5+
set(CMAKE_CXX_STANDARD 20)
6+
else()
7+
set(CMAKE_CXX_STANDARD 17)
8+
endif()
59

610
set(WebAssemblyInterface_LIBRARIES WebAssemblyInterface)
711

0 commit comments

Comments
 (0)