summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-12 13:59:23 (GMT)
committerBrad King <brad.king@kitware.com>2023-06-12 13:59:23 (GMT)
commit4a2b708144f3f7c320a68ff39f0d2236981b93a1 (patch)
tree1cb003055d45d7cd87919f8bc61f5910ed579168 /Modules/GenerateExportHeader.cmake
parentbebb2abb4b8e622df08e69dd6ff31117bd5209e8 (diff)
downloadCMake-4a2b708144f3f7c320a68ff39f0d2236981b93a1.zip
CMake-4a2b708144f3f7c320a68ff39f0d2236981b93a1.tar.gz
CMake-4a2b708144f3f7c320a68ff39f0d2236981b93a1.tar.bz2
Modules: Restore unnecessary inclusions for compatibility
Since commit 03c6ebf2b5 (Modules:Check,GenerateExportHeader: include only what's needed, 2023-03-09, v3.27.0-rc1~327^2) some existing projects broke because they were accidentally relying on indirect inclusion of some check modules. For now, restore the unnecessary includes for compatibility. They can be removed with a policy later. Fixes: #24991 Issue: #24994
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 01a6e4f..9fdc783 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/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)