File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.10.2)
22
3+ if (NOT CMAKE_CXX_STANDARD)
4+ set (CMAKE_CXX_STANDARD 11) # Supported values are ``11``, ``14``, and ``17``.
5+ endif ()
6+ if (NOT CMAKE_CXX_STANDARD_REQUIRED)
7+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
8+ endif ()
9+ if (NOT CMAKE_CXX_EXTENSIONS)
10+ set (CMAKE_CXX_EXTENSIONS OFF )
11+ endif ()
12+
313## If building external to ITK, we need to capture
414## required build setting from ITK prior to calling
515## project()
616if (NOT ITK_SOURCE_DIR)
717 find_package (ITK REQUIRED)
818 list (APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR} )
9- if (NOT CMAKE_CXX_STANDARD)
10- set (CMAKE_CXX_STANDARD 11) # Supported values are ``11``, ``14``, and ``17``.
11- endif ()
12- if (NOT CMAKE_CXX_STANDARD_REQUIRED)
13- set (CMAKE_CXX_STANDARD_REQUIRED ON )
14- endif ()
15- if (NOT CMAKE_CXX_EXTENSIONS)
16- set (CMAKE_CXX_EXTENSIONS OFF )
17- endif ()
1819
1920 foreach (p
2021 ## Only policies introduced after the cmake_minimum_required
You can’t perform that action at this time.
0 commit comments