From 48af2aded0a348c309bb688e053494d6e763d701 Mon Sep 17 00:00:00 2001 From: Marc Juul Date: Tue, 1 Aug 2023 12:50:32 +0000 Subject: [PATCH] =?UTF-8?q?Adds=20support=20for=20compiling=20on=20Ubuntu?= =?UTF-8?q?=2020.04=20by=20lowering=20required=20cmake=E2=80=A6=20(#44)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Adds support for compiling on Ubuntu 20.04 by lowering required cmake version to 3.16 (from 3.22) and removing the "set(CMAKE_C_STANDARD 20)" line which is not supported by cmake 3.16 * Adds back the CMAKE_C_STANDARD flag but now sets it to 11, the highest version supported by cmake 3.16 --------- Co-authored-by: Marek Kraus --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67b4327..bf8f2f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ -cmake_minimum_required(VERSION 3.22) +cmake_minimum_required(VERSION 3.16) project(blisp C) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -set(CMAKE_C_STANDARD 23) +set(CMAKE_C_STANDARD 11) option(BLISP_BUILD_CLI "Build CLI Tool" OFF) option(BLISP_USE_SYSTEM_LIBRARIES "Use system-installed libraries" "${CMAKE_USE_SYSTEM_LIBRARIES}")