Specify CMake policy range to avoid deprecation warning (#1211)

This commit is contained in:
Craig Scott
2023-08-17 08:54:05 +10:00
committed by GitHub
parent f732014112
commit c268020048

View File

@@ -1,5 +1,6 @@
# 3.5 is actually available almost everywhere, but this a good minimum
cmake_minimum_required(VERSION 3.4)
# 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)
# enable MSVC_RUNTIME_LIBRARY target property
# see https://cmake.org/cmake/help/latest/policy/CMP0091.html