mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-08 12:21:17 +00:00
[cmake] Require minimum CMake version 3.5
Soon CMake 4.0 will be released. It requires that projects set a minimum required CMake version of 3.5. There is a workaround with an additional flag, but it would is better to increase the minimum required version.
This commit is contained in:

committed by
Jesse Beder

parent
28f93bdec6
commit
c9371de783
@@ -1,6 +1,6 @@
|
||||
# 3.5 is actually available almost everywhere, but this a good minimum.
|
||||
# 3.14 as the upper policy limit avoids CMake deprecation warnings.
|
||||
cmake_minimum_required(VERSION 3.4...3.14)
|
||||
# 3.5 is actually available almost everywhere.
|
||||
# 3.30 as the upper policy limit avoids CMake deprecation warnings.
|
||||
cmake_minimum_required(VERSION 3.5...3.30)
|
||||
|
||||
# enable MSVC_RUNTIME_LIBRARY target property
|
||||
# see https://cmake.org/cmake/help/latest/policy/CMP0091.html
|
||||
|
Reference in New Issue
Block a user