diff options
author | dundargoc <gocdundar@gmail.com> | 2024-04-27 20:57:46 +0200 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-05-03 18:22:20 +0200 |
commit | 383018dbb8e0193db72729e433d2d5e04b2db406 (patch) | |
tree | 5f83e89f16a64b1dad3d5a3be031792fa68eb29b /cmake | |
parent | 52823616bc4d77898ddc03da7629280841d3bced (diff) | |
download | rneovim-383018dbb8e0193db72729e433d2d5e04b2db406.tar.gz rneovim-383018dbb8e0193db72729e433d2d5e04b2db406.tar.bz2 rneovim-383018dbb8e0193db72729e433d2d5e04b2db406.zip |
build: simplify policy-setting for dependencies
Passing `CMAKE_POLICY_DEFAULT_CMP0092=NEW` to all dependencies is
simpler than setting it manually in each file.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Deps.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/Deps.cmake b/cmake/Deps.cmake index 214e015d1c..0d4cb7d469 100644 --- a/cmake/Deps.cmake +++ b/cmake/Deps.cmake @@ -18,6 +18,11 @@ 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() + # MAKE_PRG if(UNIX) find_program(MAKE_PRG NAMES gmake make) |