Merge pull request #1752 from hebasto/241116-cmake-version

cmake: Update minimum required version
This commit is contained in:
Azat Khuzhin 2024-11-25 01:22:24 +03:00 committed by GitHub
commit cf5571132b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 11 deletions

View File

@ -19,17 +19,8 @@
# 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.
endif()
if (POLICY CMP0054)
cmake_policy(SET CMP0054 NEW)
endif()
if (POLICY CMP0068)
cmake_policy(SET CMP0068 NEW) # RPATH settings on macOS do not affect install_name.
endif()
if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

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()