From 76cdeb62e38eb062f6fd4ff3fedb1f6e6ebb9b5f Mon Sep 17 00:00:00 2001 From: Raul Tambre Date: Mon, 20 Jul 2020 22:23:23 +0300 Subject: [PATCH] Don't enable C language in CMake spdlog doesn't seem to actually require the C language. Not enabling it results in a significant initial configure time speedup. --- CMakeLists.txt | 3 +-- bench/CMakeLists.txt | 2 +- example/CMakeLists.txt | 2 +- tests/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52bd3ab6..e189cf5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,6 @@ # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.13) -enable_language(C) +cmake_minimum_required(VERSION 3.10) # --------------------------------------------------------------------------------------- # Start spdlog project diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index bac67440..25a94558 100644 --- a/bench/CMakeLists.txt +++ b/bench/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.10) project(spdlog_bench CXX) if(NOT TARGET spdlog) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index dec90d9c..83336e98 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -1,6 +1,6 @@ # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.10) project(spdlog_examples CXX) if(NOT TARGET spdlog) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index d4df2a68..fc97ea89 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.10) project(spdlog_utests CXX) if (NOT TARGET spdlog)