فهرست منبع

Merge topic 'restore-check-module-deps' into release-3.27

4a2b708144 Modules: Restore unnecessary inclusions for compatibility

Acked-by: Kitware Robot <[email protected]>
Acked-by: buildbot <[email protected]>
Merge-request: !8554
Brad King 2 سال پیش
والد
کامیت
0e4d93f9d7

+ 4 - 0
Modules/CheckCCompilerFlag.cmake

@@ -50,3 +50,7 @@ include(Internal/CheckCompilerFlag)
 macro (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
   cmake_check_compiler_flag(C "${_FLAG}" ${_RESULT})
 endmacro ()
+
+# FIXME(#24994): The following module is included only for compatibility
+# with projects that accidentally relied on it with CMake 3.26 and below.
+include(CheckCSourceCompiles)

+ 4 - 0
Modules/CheckCXXCompilerFlag.cmake

@@ -33,3 +33,7 @@ include(Internal/CheckCompilerFlag)
 macro (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
   cmake_check_compiler_flag(CXX "${_FLAG}" ${_RESULT})
 endmacro ()
+
+# FIXME(#24994): The following module is included only for compatibility
+# with projects that accidentally relied on it with CMake 3.26 and below.
+include(CheckCXXSourceCompiles)

+ 4 - 0
Modules/CheckFortranCompilerFlag.cmake

@@ -52,3 +52,7 @@ include(Internal/CheckCompilerFlag)
 macro (CHECK_FORTRAN_COMPILER_FLAG _FLAG _RESULT)
   cmake_check_compiler_flag(Fortran "${_FLAG}" ${_RESULT})
 endmacro ()
+
+# FIXME(#24994): The following module is included only for compatibility
+# with projects that accidentally relied on it with CMake 3.26 and below.
+include(CheckFortranSourceCompiles)

+ 4 - 0
Modules/CheckOBJCCompilerFlag.cmake

@@ -52,3 +52,7 @@ include(Internal/CheckCompilerFlag)
 macro (CHECK_OBJC_COMPILER_FLAG _FLAG _RESULT)
   cmake_check_compiler_flag(OBJC "${_FLAG}" ${_RESULT})
 endmacro ()
+
+# FIXME(#24994): The following module is included only for compatibility
+# with projects that accidentally relied on it with CMake 3.26 and below.
+include(CheckOBJCSourceCompiles)

+ 4 - 0
Modules/CheckOBJCXXCompilerFlag.cmake

@@ -52,3 +52,7 @@ include(Internal/CheckCompilerFlag)
 macro (CHECK_OBJCXX_COMPILER_FLAG _FLAG _RESULT)
   cmake_check_compiler_flag(OBJCXX "${_FLAG}" ${_RESULT})
 endmacro ()
+
+# FIXME(#24994): The following module is included only for compatibility
+# with projects that accidentally relied on it with CMake 3.26 and below.
+include(CheckOBJCXXSourceCompiles)

+ 5 - 0
Modules/CheckStructHasMember.cmake

@@ -81,3 +81,8 @@ int main()
     message(FATAL_ERROR "Unknown language:\n  ${_lang}\nSupported languages: C, CXX.\n")
   endif()
 endmacro ()
+
+# FIXME(#24994): The following modules are included only for compatibility
+# with projects that accidentally relied on them with CMake 3.26 and below.
+include(CheckCSourceCompiles)
+include(CheckCXXSourceCompiles)

+ 5 - 0
Modules/GenerateExportHeader.cmake

@@ -453,3 +453,8 @@ function(add_compiler_export_flags)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}" PARENT_SCOPE)
   endif()
 endfunction()
+
+# FIXME(#24994): The following module(s) are included only for compatibility
+# with projects that accidentally relied on them with CMake 3.26 and below.
+include(CheckCCompilerFlag)
+include(CheckCXXCompilerFlag)