Remove obsolete part from cmake configuration files (#2871)

Updating minimum CMake version to 3.11
This commit is contained in:
albert-github
2023-08-30 22:20:37 +02:00
committed by GitHub
parent cedfeeb95f
commit 81ce5fcdb7
4 changed files with 13 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 3.10...3.21)
cmake_minimum_required(VERSION 3.11...3.21)
# ---------------------------------------------------------------------------------------
# Start spdlog project
@@ -129,9 +129,7 @@ option(
option(SPDLOG_DISABLE_DEFAULT_LOGGER "Disable default logger creation" OFF)
# clang-tidy
if(${CMAKE_VERSION} VERSION_GREATER "3.5")
option(SPDLOG_TIDY "run clang-tidy" OFF)
endif()
option(SPDLOG_TIDY "run clang-tidy" OFF)
if(SPDLOG_TIDY)
set(CMAKE_CXX_CLANG_TIDY "clang-tidy")