mirror of
https://github.com/GerbilSoft/zlib-ng.git
synced 2025-06-18 11:35:35 -04:00
Address deprecated cmake version warning.
Use cmake_minimum_required(VERSION <min>...<policy_max>) syntax to set the policy at the same time as the compatibile CMake version.
This commit is contained in:
parent
2562fd1fb3
commit
11bef87c1c
@ -1,8 +1,6 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
cmake_minimum_required(VERSION 3.5.1...3.29.0)
|
||||
if(CMAKE_VERSION VERSION_LESS 3.12)
|
||||
cmake_policy(VERSION ${CMAKE_VERSION})
|
||||
else()
|
||||
cmake_policy(VERSION 3.5.1...3.29.0)
|
||||
endif()
|
||||
message(STATUS "Using CMake version ${CMAKE_VERSION}")
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
cmake_minimum_required(VERSION 3.5.1...3.29.0)
|
||||
|
||||
project(zlib-ng-add-subdirecory-test C)
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.5.1)
|
||||
cmake_minimum_required(VERSION 3.5.1...3.29.0)
|
||||
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||
enable_language(CXX)
|
||||
|
Loading…
Reference in New Issue
Block a user