Skip to content

Commit 7812a4c

Browse files
authored
Merge pull request #2098 from RedDwarf69/v1.x
CMake: Support <PackageName>_ROOT
2 parents 21ba389 + ef540c1 commit 7812a4c

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

CMakeLists.txt

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
22

3-
cmake_minimum_required(VERSION 3.10)
3+
cmake_minimum_required(VERSION 3.10...3.21)
44

55
# ---------------------------------------------------------------------------------------
66
# Start spdlog project
@@ -15,13 +15,6 @@ message(STATUS "Build spdlog: ${SPDLOG_VERSION}")
1515

1616
include(GNUInstallDirs)
1717

18-
# ---------------------------------------------------------------------------------------
19-
# Set CMake policies to support later version behaviour
20-
# ---------------------------------------------------------------------------------------
21-
if(POLICY CMP0077)
22-
cmake_policy(SET CMP0077 NEW) # option() honors variables already set
23-
endif()
24-
2518
# ---------------------------------------------------------------------------------------
2619
# Set default build to release
2720
# ---------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)