cmake: Update minimum required version

Compatibility with versions of CMake older than 3.10 is now deprecated
and will be removed from a future version.

See: https://cmake.org/cmake/help/v3.31/release/3.31.html
This commit is contained in:
Hennadii Stepanov 2024-11-16 21:26:55 +00:00
parent 78eb305975
commit 2d7a3b9b6a
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@
# start libevent.sln
#
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
if (POLICY CMP0042)
cmake_policy(SET CMP0042 NEW) # MACOSX_RPATH is enabled by default.

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.10)
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()