Commit 7efdcc26 authored by gabime's avatar gabime

CMakeLists.txt: use same policy as fmt

parent 3ab3970d
...@@ -3,6 +3,12 @@ ...@@ -3,6 +3,12 @@
cmake_minimum_required(VERSION 3.2) 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()
ENABLE_LANGUAGE(C) ENABLE_LANGUAGE(C)
#--------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------
......
cmake_minimum_required(VERSION 3.2) cmake_minimum_required(VERSION 3.2)
# Use policy 3.11 if available
if(${CMAKE_VERSION} VERSION_LESS 3.11)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
else()
cmake_policy(VERSION 3.11)
endif()
project(spdlog_utests CXX) project(spdlog_utests CXX)
if(NOT TARGET spdlog) if(NOT TARGET spdlog)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment