From 588371d2d5fdda0340b29058147f49e40723ba71 Mon Sep 17 00:00:00 2001 From: Tyler Date: Wed, 6 Mar 2024 15:32:16 -0700 Subject: [PATCH] Modules: Rename CMakeDetermine{CompileFeatures -> CompilerSupport} Rename the CMake script at `${CMAKE_ROOT}\Modules\CMakeDetermineCompileFeatures.cmake` to `${CMAKE_ROOT}\Modules\CMakeDetermineCompilerSupport.cmake`. Also, rename the function defined in that script from `cmake_determine_compile_features()` to `cmake_determine_compiler_support()`. Modify existing CMake scripts which were including the previous CMake script to refer to the new file and call the new function. --- ...pileFeatures.cmake => CMakeDetermineCompilerSupport.cmake} | 2 +- Modules/CMakeTestCCompiler.cmake | 4 ++-- Modules/CMakeTestCUDACompiler.cmake | 4 ++-- Modules/CMakeTestCXXCompiler.cmake | 4 ++-- Modules/CMakeTestHIPCompiler.cmake | 4 ++-- Modules/CMakeTestOBJCCompiler.cmake | 4 ++-- Modules/CMakeTestOBJCXXCompiler.cmake | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) rename Modules/{CMakeDetermineCompileFeatures.cmake => CMakeDetermineCompilerSupport.cmake} (99%) diff --git a/Modules/CMakeDetermineCompileFeatures.cmake b/Modules/CMakeDetermineCompilerSupport.cmake similarity index 99% rename from Modules/CMakeDetermineCompileFeatures.cmake rename to Modules/CMakeDetermineCompilerSupport.cmake index 09de7b11f2..746f04ed67 100644 --- a/Modules/CMakeDetermineCompileFeatures.cmake +++ b/Modules/CMakeDetermineCompilerSupport.cmake @@ -2,7 +2,7 @@ # file Copyright.txt or https://cmake.org/licensing for details. -function(cmake_determine_compile_features lang) +function(cmake_determine_compiler_support lang) if("x${lang}" STREQUAL "xC" AND COMMAND cmake_record_c_compile_features) message(CHECK_START "Detecting ${lang} compile features") diff --git a/Modules/CMakeTestCCompiler.cmake b/Modules/CMakeTestCCompiler.cmake index 58726db617..8ebe57092c 100644 --- a/Modules/CMakeTestCCompiler.cmake +++ b/Modules/CMakeTestCCompiler.cmake @@ -73,8 +73,8 @@ if(NOT CMAKE_C_COMPILER_WORKS) endif() # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(C) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(C) # Re-configure to save learned information. configure_file( diff --git a/Modules/CMakeTestCUDACompiler.cmake b/Modules/CMakeTestCUDACompiler.cmake index 3057fe9d51..ef97f55f17 100644 --- a/Modules/CMakeTestCUDACompiler.cmake +++ b/Modules/CMakeTestCUDACompiler.cmake @@ -65,8 +65,8 @@ if(NOT CMAKE_CUDA_COMPILER_WORKS) endif() # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(CUDA) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(CUDA) if("x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC") set(CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES "${CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES}") diff --git a/Modules/CMakeTestCXXCompiler.cmake b/Modules/CMakeTestCXXCompiler.cmake index e640ff9b30..c82a154e1d 100644 --- a/Modules/CMakeTestCXXCompiler.cmake +++ b/Modules/CMakeTestCXXCompiler.cmake @@ -66,8 +66,8 @@ if(NOT CMAKE_CXX_COMPILER_WORKS) endif() # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(CXX) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(CXX) # Re-configure to save learned information. configure_file( diff --git a/Modules/CMakeTestHIPCompiler.cmake b/Modules/CMakeTestHIPCompiler.cmake index ec54d80f2f..5b49c0d678 100644 --- a/Modules/CMakeTestHIPCompiler.cmake +++ b/Modules/CMakeTestHIPCompiler.cmake @@ -83,8 +83,8 @@ unset(__CMAKE_HIP_FLAGS) # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(HIP) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(HIP) if(CMAKE_HIP_COMPILER_ID STREQUAL "NVIDIA") include(Internal/CMakeNVCCFilterImplicitInfo) diff --git a/Modules/CMakeTestOBJCCompiler.cmake b/Modules/CMakeTestOBJCCompiler.cmake index a36180b21a..bcb3e1e65c 100644 --- a/Modules/CMakeTestOBJCCompiler.cmake +++ b/Modules/CMakeTestOBJCCompiler.cmake @@ -70,8 +70,8 @@ if(NOT CMAKE_OBJC_COMPILER_WORKS) endif() # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(OBJC) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(OBJC) # Re-configure to save learned information. configure_file( diff --git a/Modules/CMakeTestOBJCXXCompiler.cmake b/Modules/CMakeTestOBJCXXCompiler.cmake index f7935c7bbf..68b387189a 100644 --- a/Modules/CMakeTestOBJCXXCompiler.cmake +++ b/Modules/CMakeTestOBJCXXCompiler.cmake @@ -69,8 +69,8 @@ if(NOT CMAKE_OBJCXX_COMPILER_WORKS) endif() # Try to identify the compiler features -include(${CMAKE_ROOT}/Modules/CMakeDetermineCompileFeatures.cmake) -CMAKE_DETERMINE_COMPILE_FEATURES(OBJCXX) +include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerSupport.cmake) +CMAKE_DETERMINE_COMPILER_SUPPORT(OBJCXX) # Re-configure to save learned information. configure_file(