1010# CMake versions greater than the ITKEX_NEWEST_VALIDATED_POLICIES_VERSION policies will
1111# continue to generate policy warnings "CMake Warning (dev)...Policy CMP0XXX is not set:"
1212#
13- set (ITKEX_OLDEST_VALIDATED_POLICIES_VERSION "3.16.3 " )
14- set (ITKEX_NEWEST_VALIDATED_POLICIES_VERSION "3.19.7 " )
13+ set (ITKEX_OLDEST_VALIDATED_POLICIES_VERSION "3.22.1 " )
14+ set (ITKEX_NEWEST_VALIDATED_POLICIES_VERSION "3.31.5 " )
1515cmake_minimum_required (VERSION ${ITKEX_OLDEST_VALIDATED_POLICIES_VERSION} FATAL_ERROR)
1616if ("${CMAKE_VERSION} " VERSION_LESS_EQUAL "${ITKEX_NEWEST_VALIDATED_POLICIES_VERSION} " )
1717 #Set and use the newest available cmake policies that are validated to work
@@ -36,14 +36,14 @@ foreach(pold "") # Currently Empty
3636endforeach ()
3737
3838# ==== Define language standard configurations requiring at least c++14 standard
39- if (CMAKE_CXX_STANDARD EQUAL "98" OR CMAKE_CXX_STANDARD LESS "14 " )
40- message (FATAL_ERROR "C++98 to C++11 are no longer supported in ITK version 5.3 and greater." )
39+ if (CMAKE_CXX_STANDARD EQUAL "98" OR CMAKE_CXX_STANDARD LESS "17 " )
40+ message (FATAL_ERROR "C++98 to C++11 are no longer supported in ITK version v5.4 and greater." )
4141endif ()
4242
4343#####
4444## Set the default target properties for ITK
4545if (NOT CMAKE_CXX_STANDARD)
46- set (CMAKE_CXX_STANDARD 14 ) # Supported values are ``14``, ``17``, and ``20``.
46+ set (CMAKE_CXX_STANDARD 17 ) # Supported values are ``17``, and ``20``.
4747endif ()
4848if (NOT CMAKE_CXX_STANDARD_REQUIRED)
4949 set (CMAKE_CXX_STANDARD_REQUIRED ON )
@@ -80,7 +80,7 @@ endif()
8080if (NOT ITK_VERSION)
8181 # To get the ITK version information from external package when building
8282 # stand alone, ITK is required.
83- find_package (ITK 5.3 .0 REQUIRED)
83+ find_package (ITK 5.4 .0 REQUIRED)
8484endif ()
8585set (ITKSphinxExamples_VERSION_MAJOR ${ITK_VERSION_MAJOR} )
8686set (ITKSphinxExamples_VERSION_MINOR ${ITK_VERSION_MINOR} )
@@ -138,8 +138,8 @@ foreach(link ${content_links})
138138endforeach ()
139139ExternalData_Add_Target(ITKSphinxExamplesData)
140140
141- set (PYTHON_REQUIRED_VERSION 3.7 )
142- set (Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9 3.8 3.7 )
141+ set (PYTHON_REQUIRED_VERSION 3.9 )
142+ set (Python_ADDITIONAL_VERSIONS 3.12 3.11 3.10 3.9)
143143if (BUILD_TESTING OR ITK_BUILD_DOCUMENTATION OR ITK_WRAP_PYTHON)
144144 if (ITK_WRAP_PYTHON)
145145 # Use the same Python interpreter as ITK to run the tests.
0 commit comments