Skip to content

Commit 0df1ba6

Browse files
committed
COMP: Ensure that C++ standard version is at least C++17
Aims to avoid compile errors from macosx-10.9-universal2-3.11/Xcode_13.2.1 MacOSX12.1.sdk/AppleClang 13.0.0.13000029 saying: > error: no template named 'is_integral_v' in namespace 'std'; did you mean 'is_integral'?
1 parent 442672e commit 0df1ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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.3)
22
project(Elastix)
33

4-
if(NOT CMAKE_CXX_STANDARD)
4+
if(NOT CMAKE_CXX_STANDARD OR CMAKE_CXX_STANDARD LESS 17)
55
# SuperElastix/elastix uses C++17 specific features in some of its header files.
66
set(CMAKE_CXX_STANDARD 17)
77
endif()

0 commit comments

Comments
 (0)