build(cmake): set CMP0218 to NEW (#1952)

This commit is contained in:
Oleg Shparber
2026-08-14 04:47:44 +03:00
committed by GitHub
parent ae4086f7a0
commit 0dfb36c837
+7 -1
View File
@@ -9,9 +9,15 @@ setup_homebrew()
# CMake options. # CMake options.
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON) set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
set(CMAKE_DISABLE_SOURCE_CHANGES ON) set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_ERROR_DEPRECATED TRUE)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
if(POLICY CMP0218)
cmake_policy(SET CMP0218 NEW)
cmake_diagnostic(SET CMD_DEPRECATED FATAL_ERROR)
else()
set(CMAKE_ERROR_DEPRECATED TRUE)
endif()
# VERSION is the next development version, bumped automatically after each release. # VERSION is the next development version, bumped automatically after each release.
# ZEAL_RELEASE_VERSION is the last released version, updated by `just release-prepare`. # ZEAL_RELEASE_VERSION is the last released version, updated by `just release-prepare`.
# When both match, the build is treated as a release; otherwise it's a dev build. # When both match, the build is treated as a release; otherwise it's a dev build.