|  | @@ -88,17 +88,7 @@
 | 
											
												
													
														|  |  # any outside mailing list and no documentation of the change will be
 |  |  # any outside mailing list and no documentation of the change will be
 | 
											
												
													
														|  |  # written.
 |  |  # written.
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | -cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
 |  | 
 | 
											
												
													
														|  | -foreach(p
 |  | 
 | 
											
												
													
														|  | -    CMP0056 # CMake 3.2, Honor link flags in try_compile() source-file signature.
 |  | 
 | 
											
												
													
														|  | -    CMP0063 # CMake 3.3, Honor visibility properties for all target types.
 |  | 
 | 
											
												
													
														|  | -    CMP0067 # CMake 3.8, Honor language standard in try_compile source-file signature.
 |  | 
 | 
											
												
													
														|  | -    CMP0069 # CMake 3.9, INTERPROCEDURAL_OPTIMIZATION is enforced when enabled.
 |  | 
 | 
											
												
													
														|  | -    )
 |  | 
 | 
											
												
													
														|  | -  if(POLICY ${p})
 |  | 
 | 
											
												
													
														|  | -    cmake_policy(SET ${p} NEW)
 |  | 
 | 
											
												
													
														|  | -  endif()
 |  | 
 | 
											
												
													
														|  | -endforeach()
 |  | 
 | 
											
												
													
														|  | 
 |  | +cmake_minimum_required(VERSION 3.9...3.22 FATAL_ERROR)
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  # Some configure checks depend upon the deployment target. Clear checks when
 |  |  # Some configure checks depend upon the deployment target. Clear checks when
 | 
											
												
													
														|  |  # the deployment target changes.
 |  |  # the deployment target changes.
 | 
											
										
											
												
													
														|  | @@ -1111,7 +1101,7 @@ if(KWSYS_STANDALONE OR CMake_SOURCE_DIR)
 | 
											
												
													
														|  |      # Some Apple compilers produce bad optimizations in this source.
 |  |      # Some Apple compilers produce bad optimizations in this source.
 | 
											
												
													
														|  |      if(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|LLVM)$")
 |  |      if(APPLE AND CMAKE_C_COMPILER_ID MATCHES "^(GNU|LLVM)$")
 | 
											
												
													
														|  |        set(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -O0")
 |  |        set(testProcess_COMPILE_FLAGS "${testProcess_COMPILE_FLAGS} -O0")
 | 
											
												
													
														|  | -    elseif(CMAKE_C_COMPILER_ID STREQUAL "XL")
 |  | 
 | 
											
												
													
														|  | 
 |  | +    elseif(CMAKE_C_COMPILER_ID MATCHES "^(XL|XLClang)$")
 | 
											
												
													
														|  |        # Tell IBM XL not to warn about our test infinite loop
 |  |        # Tell IBM XL not to warn about our test infinite loop
 | 
											
												
													
														|  |        if(CMAKE_SYSTEM MATCHES "Linux.*ppc64le"
 |  |        if(CMAKE_SYSTEM MATCHES "Linux.*ppc64le"
 | 
											
												
													
														|  |           AND CMAKE_C_COMPILER_VERSION VERSION_LESS "16.1.0"
 |  |           AND CMAKE_C_COMPILER_VERSION VERSION_LESS "16.1.0"
 |