Merge pull request #2098 from RedDwarf69/v1.x

CMake: Support <PackageName>_ROOT
This commit is contained in:
Gabi Melman 2021-09-09 13:30:33 +03:00 committed by GitHub
commit 7812a4c89f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)
cmake_minimum_required(VERSION 3.10...3.21)
# ---------------------------------------------------------------------------------------
# Start spdlog project
@ -15,13 +15,6 @@ message(STATUS "Build spdlog: ${SPDLOG_VERSION}")
include(GNUInstallDirs)
# ---------------------------------------------------------------------------------------
# Set CMake policies to support later version behaviour
# ---------------------------------------------------------------------------------------
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) # option() honors variables already set
endif()
# ---------------------------------------------------------------------------------------
# Set default build to release
# ---------------------------------------------------------------------------------------