aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2023-10-14 13:12:48 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2023-12-16 17:17:24 +0100
commit7840760776cf8dbaa580ced87aec0222dbb693d7 (patch)
tree6958f4808dc5881010ff1ab5195ac75722ca3248 /cmake
parent896b400bff5ccc3d369bc19ab78bc4b5a8d88066 (diff)
downloadrneovim-7840760776cf8dbaa580ced87aec0222dbb693d7.tar.gz
rneovim-7840760776cf8dbaa580ced87aec0222dbb693d7.tar.bz2
rneovim-7840760776cf8dbaa580ced87aec0222dbb693d7.zip
build: bump minimum cmake version to 3.13
The benefits are primarily being able to use FetchContent, which allows for a more flexible dependency handling. Other various quality-of-life features such as `-B` and `-S` flags are also included. This also removes broken `--version` generation as it does not work for version 3.10 and 3.11 due to the `JOIN` generator expression. Reference: https://github.com/neovim/neovim/issues/24004
Diffstat (limited to 'cmake')
-rw-r--r--cmake/InstallHelpers.cmake13
1 files changed, 0 insertions, 13 deletions
diff --git a/cmake/InstallHelpers.cmake b/cmake/InstallHelpers.cmake
index 63bf2bb73b..0a07bf9859 100644
--- a/cmake/InstallHelpers.cmake
+++ b/cmake/InstallHelpers.cmake
@@ -151,16 +151,3 @@ function(install_helper)
${RENAME})
endif()
endfunction()
-
-# Without CONFIGURE_DEPENDS globbing reuses cached file tree on rebuild.
-# For example it will ignore new files.
-# CONFIGURE_DEPENDS was introduced in 3.12
-
-function(glob_wrapper outvar)
- if(${CMAKE_VERSION} VERSION_LESS 3.12)
- file(GLOB ${outvar} ${ARGN})
- else()
- file(GLOB ${outvar} CONFIGURE_DEPENDS ${ARGN})
- endif()
- set(${outvar} ${${outvar}} PARENT_SCOPE)
-endfunction()