Skip to content

Commit 7939973

Browse files
authored
[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. ```
1 parent fa50c19 commit 7939973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.18)
22

3-
project(SwiftLLVMBindings LANGUAGES Swift)
3+
project(SwiftLLVMBindings LANGUAGES C Swift)
44

55
if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin)
66
option(BUILD_SHARED_LIBS "Build shared libraries by default" YES)

0 commit comments

Comments
 (0)