From 327110ff8c5965eaae92f363f06b04a4986b6ef7 Mon Sep 17 00:00:00 2001 From: dundargoc Date: Sun, 22 Sep 2024 17:00:38 +0200 Subject: [PATCH] build(cmake): remove unnecessary policy code Policy CMP0092 is by default on for minimum cmake versions above 3.15. --- cmake.deps/CMakeLists.txt | 2 +- cmake/Deps.cmake | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/cmake.deps/CMakeLists.txt b/cmake.deps/CMakeLists.txt index 96519429fb..394c50a3b5 100644 --- a/cmake.deps/CMakeLists.txt +++ b/cmake.deps/CMakeLists.txt @@ -1,5 +1,5 @@ # This is not meant to be included by the top-level. -cmake_minimum_required (VERSION 3.16) +cmake_minimum_required(VERSION 3.16) project(NVIM_DEPS C) if(POLICY CMP0135) diff --git a/cmake/Deps.cmake b/cmake/Deps.cmake index 398d9564cd..519826654f 100644 --- a/cmake/Deps.cmake +++ b/cmake/Deps.cmake @@ -18,11 +18,6 @@ if(APPLE) list(APPEND DEPS_CMAKE_ARGS -D CMAKE_FIND_FRAMEWORK=${CMAKE_FIND_FRAMEWORK}) endif() -# Can be removed once minimum version is at least 3.15 -if(POLICY CMP0092) - list(APPEND DEPS_CMAKE_ARGS -D CMAKE_POLICY_DEFAULT_CMP0092=NEW) -endif() - find_program(CACHE_PRG NAMES ccache sccache) if(CACHE_PRG) set(CMAKE_C_COMPILER_LAUNCHER ${CMAKE_COMMAND} -E env CCACHE_SLOPPINESS=pch_defines,time_macros ${CACHE_PRG})