From aaea48aac6e227314ec08acec2a4c3c84538cab8 Mon Sep 17 00:00:00 2001 From: dundargoc <33953936+dundargoc@users.noreply.github.com> Date: Sun, 26 Feb 2023 13:32:37 +0100 Subject: [PATCH] build: set libtermkey project language to C (#22410) This will prevent cmake from failing the build if a C++ compiler isn't found. --- cmake.deps/cmake/LibvtermCMakeLists.txt | 2 +- cmake.deps/cmake/TreesitterCMakeLists.txt | 2 +- cmake.deps/cmake/libtermkeyCMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake.deps/cmake/LibvtermCMakeLists.txt b/cmake.deps/cmake/LibvtermCMakeLists.txt index 777ce6c54c..0fb3227117 100644 --- a/cmake.deps/cmake/LibvtermCMakeLists.txt +++ b/cmake.deps/cmake/LibvtermCMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(libvterm LANGUAGES C) +project(libvterm C) include(GNUInstallDirs) diff --git a/cmake.deps/cmake/TreesitterCMakeLists.txt b/cmake.deps/cmake/TreesitterCMakeLists.txt index 49fb19c96a..9017436ef5 100644 --- a/cmake.deps/cmake/TreesitterCMakeLists.txt +++ b/cmake.deps/cmake/TreesitterCMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(tree-sitter LANGUAGES C) +project(tree-sitter C) add_library(tree-sitter lib/src/lib.c) target_include_directories(tree-sitter diff --git a/cmake.deps/cmake/libtermkeyCMakeLists.txt b/cmake.deps/cmake/libtermkeyCMakeLists.txt index 26c9d7730b..95d4a54549 100644 --- a/cmake.deps/cmake/libtermkeyCMakeLists.txt +++ b/cmake.deps/cmake/libtermkeyCMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(libtermkey) +project(libtermkey C) add_definitions(-D _CRT_SECURE_NO_WARNINGS) add_definitions(-DHAVE_UNIBILIUM)