diff --git a/CMakeLists.txt b/CMakeLists.txt index 6861e36e..52bd3ab6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,13 +1,6 @@ # Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT) -cmake_minimum_required(VERSION 3.2) - -if(${CMAKE_VERSION} VERSION_LESS 3.11) - cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) -else() - cmake_policy(VERSION 3.11) -endif() - +cmake_minimum_required(VERSION 3.13) enable_language(C) # --------------------------------------------------------------------------------------- diff --git a/bench/CMakeLists.txt b/bench/CMakeLists.txt index de4d6d14..bac67440 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.1) +cmake_minimum_required(VERSION 3.13) project(spdlog_bench CXX) if(NOT TARGET spdlog) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 10af4300..dec90d9c 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.2) +cmake_minimum_required(VERSION 3.13) project(spdlog_examples CXX) if(NOT TARGET spdlog) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 790c8393..d4df2a68 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,4 @@ -cmake_minimum_required(VERSION 3.2) - +cmake_minimum_required(VERSION 3.13) project(spdlog_utests CXX) if (NOT TARGET spdlog)