[llvm] 9c39400 - [CMake] Fixes using CMake 3.27.0.

Mark de Wever via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 08:31:34 PDT 2023


Author: Mark de Wever
Date: 2023-06-15T17:31:29+02:00
New Revision: 9c39400d1a0ff80b31d4b12728f1ff37dc5fe0f5

URL: https://github.com/llvm/llvm-project/commit/9c39400d1a0ff80b31d4b12728f1ff37dc5fe0f5
DIFF: https://github.com/llvm/llvm-project/commit/9c39400d1a0ff80b31d4b12728f1ff37dc5fe0f5.diff

LOG: [CMake] Fixes using CMake 3.27.0.

Testing libc++ with CMake 3.27.0-rc1 fails. It seems some of the modules
used in CMake are not included.

The error before this change was
```
CMake Error at <mono-repo>/llvm/cmake/modules/HandleLLVMOptions.cmake:821 (CHECK_C_SOURCE_COMPILES):
  Unknown CMake command "CHECK_C_SOURCE_COMPILES".
Call Stack (most recent call first):
  CMakeLists.txt:156 (include)
```

Reviewed By: thesamesam

Differential Revision: https://reviews.llvm.org/D152619

Added: 
    

Modified: 
    llvm/cmake/modules/HandleLLVMOptions.cmake

Removed: 
    


################################################################################
diff  --git a/llvm/cmake/modules/HandleLLVMOptions.cmake b/llvm/cmake/modules/HandleLLVMOptions.cmake
index 525ba48850ca7..bc3af21360373 100644
--- a/llvm/cmake/modules/HandleLLVMOptions.cmake
+++ b/llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -10,9 +10,10 @@ include(CheckCompilerVersion)
 include(CheckProblematicConfigurations)
 include(HandleLLVMStdlib)
 include(CheckCCompilerFlag)
+include(CheckCSourceCompiles)
 include(CheckCXXCompilerFlag)
+include(CheckCXXSourceCompiles)
 include(CheckSymbolExists)
-include(CheckCSourceCompiles)
 include(CMakeDependentOption)
 include(LLVMProcessSources)
 


        


More information about the llvm-commits mailing list