Skip to content

Commit

Permalink
Specify CMake policy range to avoid deprecation warning (jbeder#1211)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigscott-crascit authored Aug 16, 2023
1 parent f732014 commit c268020
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit c268020

Please sign in to comment.