mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
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.
This commit is contained in:
@@ -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")
|
||||
@@ -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(
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user