From 1630f6277f63ca38ef89dd12c1fc5b8e1ff58898 Mon Sep 17 00:00:00 2001 From: CPunch Date: Sun, 30 Jan 2022 01:20:47 -0600 Subject: [PATCH] Moved CMAKE_C_STANDARD to the root CMakeLists.txt --- CMakeLists.txt | 3 +++ bot/CMakeLists.txt | 3 --- cnc/CMakeLists.txt | 3 --- lib/CMakeLists.txt | 3 --- tools/genkey/CMakeLists.txt | 3 --- 5 files changed, 3 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 208f509..f452e2a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.10) project(Laika) +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_STANDARD_REQUIRED ON) + # Set the project as the default startup project for VS set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT Laika) diff --git a/bot/CMakeLists.txt b/bot/CMakeLists.txt index 8d5d3d5..9d1f39f 100644 --- a/bot/CMakeLists.txt +++ b/bot/CMakeLists.txt @@ -1,8 +1,5 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) - set(BOT_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include) project(LaikaBot VERSION 1.0) diff --git a/cnc/CMakeLists.txt b/cnc/CMakeLists.txt index 3a3cdb3..6118fc9 100644 --- a/cnc/CMakeLists.txt +++ b/cnc/CMakeLists.txt @@ -1,8 +1,5 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) - set(CNC_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include) project(LaikaCNC VERSION 1.0) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index d1da688..8bcc304 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,8 +1,5 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) - set(LIB_INCLUDEDIR ${CMAKE_CURRENT_SOURCE_DIR}/include) # DO NOT USE THESE KEYS, TESTING ONLY diff --git a/tools/genkey/CMakeLists.txt b/tools/genkey/CMakeLists.txt index 4b81c14..a70c4d7 100644 --- a/tools/genkey/CMakeLists.txt +++ b/tools/genkey/CMakeLists.txt @@ -1,8 +1,5 @@ cmake_minimum_required(VERSION 3.10) -set(CMAKE_C_STANDARD 99) -set(CMAKE_C_STANDARD_REQUIRED ON) - project(genKey VERSION 1.0) # Put CMake targets (ALL_BUILD/ZERO_CHECK) into a folder