From 79399731ad8530a59e42595e2e16cbd48a6cd11c Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Wed, 17 Aug 2022 17:45:38 +0100 Subject: [PATCH] [build] Explicitly tell CMake that the project uses C language This fixes a CMake error: ``` CheckSourceCompiles.cmake:44 (message): check_source_compiles: C: needs to be enabled before use. ``` --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f220cd..8c6683f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.18) -project(SwiftLLVMBindings LANGUAGES Swift) +project(SwiftLLVMBindings LANGUAGES C Swift) if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin) option(BUILD_SHARED_LIBS "Build shared libraries by default" YES)