Tarantool development patches archive
 help / color / mirror / Atom feed
From: Sergey Bronnikov via Tarantool-patches <tarantool-patches@dev.tarantool.org>
To: Maxim Kokryashkin <m.kokryashkin@tarantool.org>,
	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: Fri, 22 Mar 2024 18:23:38 +0300	[thread overview]
Message-ID: <a1567fe3-2bfb-467e-8d51-a58bfe4cc6bf@tarantool.org> (raw)
In-Reply-To: <p2rkv4rwxaw5u7ngg3wcxy3gprsljmf75e3fy4razc5svroboe@kwrdlve4soxl>

Max, thanks for your comments!


On 3/21/24 13:13, Maxim Kokryashkin wrote:
> 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/
Fixed.
>> 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.
Added.
>> 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/
Fixed.
>> with a that version.
> Typo: s/a that/that/
Fixed.
>> ---
>> 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>

  reply	other threads:[~2024-03-22 15:23 UTC|newest]

Thread overview: 4+ 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
2024-03-22 15:23   ` Sergey Bronnikov via Tarantool-patches [this message]
2024-04-08  9:15     ` Maxim Kokryashkin 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=a1567fe3-2bfb-467e-8d51-a58bfe4cc6bf@tarantool.org \
    --to=tarantool-patches@dev.tarantool.org \
    --cc=estetus@gmail.com \
    --cc=m.kokryashkin@tarantool.org \
    --cc=sergeyb@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