mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
CMakeLists.txt: use same policy as fmt
This commit is contained in:
parent
5ab487dbae
commit
3ab3970dd2
@ -1,5 +1,12 @@
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user