From 089444e957d66375fbf4678a65d5106c7349223a Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Tue, 27 Oct 2020 07:23:38 +0100 Subject: Remove the build requirement for an unused C++ compiler This patch sets the programming languages of each CMake project to C. With this change, CMake does not search for an unused C++ compiler anymore. --- src/utils/CMakeLists.txt | 3 ++- src/utils/lib/CMakeLists.txt | 3 ++- src/utils/libsmartcols/CMakeLists.txt | 3 ++- src/utils/sys-utils/CMakeLists.txt | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index f3ea912..e791a40 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required(VERSION 3.10) # set the project name -project(xloop-utils) +project(xloop-utils + LANGUAGES C) # include global headers include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) diff --git a/src/utils/lib/CMakeLists.txt b/src/utils/lib/CMakeLists.txt index 22eafb3..ac70039 100644 --- a/src/utils/lib/CMakeLists.txt +++ b/src/utils/lib/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required(VERSION 3.10) # set the project name -project(xloop-utils-lib) +project(xloop-utils-lib + LANGUAGES C) add_library(libcommon STATIC ${CMAKE_CURRENT_SOURCE_DIR}/blkdev.c ${CMAKE_CURRENT_SOURCE_DIR}/canonicalize.c diff --git a/src/utils/libsmartcols/CMakeLists.txt b/src/utils/libsmartcols/CMakeLists.txt index dccb5e2..307f06d 100644 --- a/src/utils/libsmartcols/CMakeLists.txt +++ b/src/utils/libsmartcols/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required(VERSION 3.10) # set the project name -project(xloop-utils-libsmartcols) +project(xloop-utils-libsmartcols + LANGUAGES C) add_library(libsmartcols STATIC ${CMAKE_CURRENT_SOURCE_DIR}/src/buffer.c ${CMAKE_CURRENT_SOURCE_DIR}/src/calculate.c diff --git a/src/utils/sys-utils/CMakeLists.txt b/src/utils/sys-utils/CMakeLists.txt index e05b5cf..56bc69c 100644 --- a/src/utils/sys-utils/CMakeLists.txt +++ b/src/utils/sys-utils/CMakeLists.txt @@ -1,7 +1,8 @@ cmake_minimum_required(VERSION 3.10) # set the project name -project(xloop-utils-sys-utils) +project(xloop-utils-sys-utils + LANGUAGES C) # add xlosetup executable add_executable(xlosetup ${CMAKE_CURRENT_SOURCE_DIR}/xlosetup.c) -- cgit v1.2.3-55-g7522