From b022f676fc8269d80d48dafb0ee06ec2ecbb1feb Mon Sep 17 00:00:00 2001 From: Slava Zakharin Date: Tue, 25 Mar 2025 15:39:05 -0700 Subject: [PATCH] [flang] Include needed CMake files. (#133012) `FlangCommon.cmake` uses some CMake macros without including the corresponding modules. This change makes it self-sufficient. --- flang/cmake/modules/FlangCommon.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flang/cmake/modules/FlangCommon.cmake b/flang/cmake/modules/FlangCommon.cmake index 77e93e3abbd0..c01afa43d0c1 100644 --- a/flang/cmake/modules/FlangCommon.cmake +++ b/flang/cmake/modules/FlangCommon.cmake @@ -10,6 +10,9 @@ # #===------------------------------------------------------------------------===# +include(CheckCSourceCompiles) +include(CheckIncludeFile) + # The out of tree builds of the compiler and the Fortran runtime # must use the same setting of FLANG_RUNTIME_F128_MATH_LIB # to be composable. Failure to synchronize this setting may result