From: Maxim Kokryashkin via Tarantool-patches <tarantool-patches@dev.tarantool.org> To: Sergey Bronnikov <estetus@gmail.com> Cc: tarantool-patches@dev.tarantool.org Subject: Re: [Tarantool-patches] [PATCH luajit] cmake: fix warnings about minimum required version Date: Thu, 21 Mar 2024 13:13:13 +0300 [thread overview] Message-ID: <p2rkv4rwxaw5u7ngg3wcxy3gprsljmf75e3fy4razc5svroboe@kwrdlve4soxl> (raw) In-Reply-To: <a3454f746afb9a8f6494921bb2e64695e26902d6.1711007599.git.sergeyb@tarantool.org> Hi, Sergey! Thanks for the patch! Please consider my comments below. On Thu, Mar 21, 2024 at 11:33:29AM +0300, Sergey Bronnikov wrote: > From: Sergey Bronnikov <sergeyb@tarantool.org> > > CMake produces annoying warnings: > > CMake Deprecation Warning at src/CMakeLists.txt:7 (cmake_minimum_required): > Compatibility with CMake < 3.5 will be removed from a future version of > CMake. > > We cannot bump a minimum required CMake version without > bumping it in a Tarantool build system. However, we can set Typo: s/in a/in the/ > a max supported CMake version and suppress a warning. Please specify in the commit message and in comments in cmake files that maximum supported version means "maximum version this CMake file is known to work properly" and will not result in any build errors rightaway for higher versions. > CMake 3.27.7 is a version used by me for a long time for > building LuaJIT. This version is tested and seen no policy warnings Typo: s/is tested/has been tested/ Typo: s/there have been/ > with a that version. Typo: s/a that/that/ > --- > Branch: https://github.com/tarantool/luajit/tree/ligurio/fix-cmake-warnings > Doc: https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html > > NOTE: another solution is using CMAKE_WARN_DEPRECATED, > but I don't like it. Let's discuss. > > 1. https://cmake.org/cmake/help/latest/variable/CMAKE_WARN_DEPRECATED.html > > CMakeLists.txt | 2 +- > etc/CMakeLists.txt | 2 +- > src/CMakeLists.txt | 2 +- > src/host/CMakeLists.txt | 2 +- > test/CMakeLists.txt | 2 +- > test/LuaJIT-tests/CMakeLists.txt | 2 +- > test/LuaJIT-tests/src/CMakeLists.txt | 2 +- > test/PUC-Rio-Lua-5.1-tests/CMakeLists.txt | 2 +- > test/PUC-Rio-Lua-5.1-tests/libs/CMakeLists.txt | 2 +- > test/lua-Harness-tests/CMakeLists.txt | 2 +- > test/tarantool-tests/CMakeLists.txt | 2 +- > tools/CMakeLists.txt | 2 +- > 12 files changed, 12 insertions(+), 12 deletions(-) > > diff --git a/CMakeLists.txt b/CMakeLists.txt > index 7f5e2afb..9edff6f3 100644 > --- a/CMakeLists.txt > +++ b/CMakeLists.txt > @@ -8,7 +8,7 @@ > <snipped>
next prev parent reply other threads:[~2024-03-21 10:13 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-21 8:33 Sergey Bronnikov via Tarantool-patches 2024-03-21 10:13 ` Maxim Kokryashkin via Tarantool-patches [this message] 2024-03-22 15:23 ` Sergey Bronnikov via Tarantool-patches 2024-04-08 9:15 ` Maxim Kokryashkin via Tarantool-patches 2024-06-17 12:47 ` Sergey Kaplun via Tarantool-patches 2024-06-18 10:23 ` Sergey Bronnikov via Tarantool-patches 2024-07-09 8:05 ` Sergey Kaplun via Tarantool-patches
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=p2rkv4rwxaw5u7ngg3wcxy3gprsljmf75e3fy4razc5svroboe@kwrdlve4soxl \ --to=tarantool-patches@dev.tarantool.org \ --cc=estetus@gmail.com \ --cc=m.kokryashkin@tarantool.org \ --subject='Re: [Tarantool-patches] [PATCH luajit] cmake: fix warnings about minimum required version' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox