Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2022 13:07:17 +0100
From:      Nuno Teixeira <eduardo@freebsd.org>
To:        FreeBSD Mailing List <freebsd-ports@freebsd.org>
Subject:   Re: cmake cxx standard and USES compiler:c++{17,14,11}-lang
Message-ID:  <CAFDf7ULUuqpcKaV6aM=rgSraSi2Vugw1QHBxgmsMSc1cpk3w%2BA@mail.gmail.com>
In-Reply-To: <20220731071753.cqg4wkclcpqzpatk@nexus.home.palmen-it.de>
References:  <CAFDf7UJ-cXVtGjLE6=GyJbjRxb6yaKghoPXy_ED7cDFkUd3=%2Bw@mail.gmail.com> <20220731071753.cqg4wkclcpqzpatk@nexus.home.palmen-it.de>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000043053a05e518ba88
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Felix,

Thanks for your explanation.

Cheers

Felix Palmen <felix@palmen-it.de> escreveu no dia domingo, 31/07/2022 =C3=
=A0(s)
08:18:

> Hello Nuno,
>
> * Nuno Teixeira <eduardo@freebsd.org> [20220730 22:00]:
> > I'm working on a port that have wrksrc CMakeLists.txt:
> > ---
> > set(CMAKE_CXX_STANDARD 17)
> > set(CMAKE_CXX_STANDARD_REQUIRED ON)
> > ---
> > but port Makefile have:
> > ---
> > USES=3D cmake compiler:c++14-lang
> > ---
> >
> > Should I change it to compiler:c++17-lang?
>
> Most likely yes.
>
> > Do USES=3D compiler have any influence on cmake building?
>
> Currently not in practice. It will just pull in a compiler from ports
> *if* the base compiler doesn't offer the standard required, but as far
> as I know, a base compiler supporting c++14 will also support c++17 (and
> after EOL of 12, there won't be any base compilers left not supporting
> these standards).
>
> I have a review open trying to add c++20 and c++2b *and* to honor
> LLVM_DEFAULT in case it will pull in llvm here:
> <https://reviews.freebsd.org/D35889>;
>
> BR, Felix
>
> --
>  Dipl.-Inform. Felix Palmen  <felix@palmen-it.de>   ,.//..........
>  {web}  http://palmen-it.de  {jabber} [see email]   ,//palmen-it.de
>  {pgp public key}     http://palmen-it.de/pub.txt   //   """""""""""
>  {pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A
>

--00000000000043053a05e518ba88
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Felix,</div><div><br></div><div>Thanks for your ex=
planation.</div><div><br></div><div>Cheers<br></div></div><br><div class=3D=
"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">Felix Palmen &lt;<a hre=
f=3D"mailto:felix@palmen-it.de">felix@palmen-it.de</a>&gt; escreveu no dia =
domingo, 31/07/2022 =C3=A0(s) 08:18:<br></div><blockquote class=3D"gmail_qu=
ote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,20=
4);padding-left:1ex">Hello Nuno,<br>
<br>
* Nuno Teixeira &lt;<a href=3D"mailto:eduardo@freebsd.org" target=3D"_blank=
">eduardo@freebsd.org</a>&gt; [20220730 22:00]:<br>
&gt; I&#39;m working on a port that have wrksrc CMakeLists.txt:<br>
&gt; ---<br>
&gt; set(CMAKE_CXX_STANDARD 17)<br>
&gt; set(CMAKE_CXX_STANDARD_REQUIRED ON)<br>
&gt; ---<br>
&gt; but port Makefile have:<br>
&gt; ---<br>
&gt; USES=3D cmake compiler:c++14-lang<br>
&gt; ---<br>
&gt; <br>
&gt; Should I change it to compiler:c++17-lang?<br>
<br>
Most likely yes.<br>
<br>
&gt; Do USES=3D compiler have any influence on cmake building?<br>
<br>
Currently not in practice. It will just pull in a compiler from ports<br>
*if* the base compiler doesn&#39;t offer the standard required, but as far<=
br>
as I know, a base compiler supporting c++14 will also support c++17 (and<br=
>
after EOL of 12, there won&#39;t be any base compilers left not supporting<=
br>
these standards).<br>
<br>
I have a review open trying to add c++20 and c++2b *and* to honor<br>
LLVM_DEFAULT in case it will pull in llvm here:<br>
&lt;<a href=3D"https://reviews.freebsd.org/D35889" rel=3D"noreferrer" targe=
t=3D"_blank">https://reviews.freebsd.org/D35889</a>&gt;<br>;
<br>
BR, Felix<br>
<br>
-- <br>
=C2=A0Dipl.-Inform. Felix Palmen=C2=A0 &lt;<a href=3D"mailto:felix@palmen-i=
t.de" target=3D"_blank">felix@palmen-it.de</a>&gt;=C2=A0 =C2=A0,.//........=
..<br>
=C2=A0{web}=C2=A0 <a href=3D"http://palmen-it.de" rel=3D"noreferrer" target=
=3D"_blank">http://palmen-it.de</a>=C2=A0 {jabber} [see email]=C2=A0 =C2=A0=
,//<a href=3D"http://palmen-it.de" rel=3D"noreferrer" target=3D"_blank">pal=
men-it.de</a><br>
=C2=A0{pgp public key}=C2=A0 =C2=A0 =C2=A0<a href=3D"http://palmen-it.de/pu=
b.txt" rel=3D"noreferrer" target=3D"_blank">http://palmen-it.de/pub.txt</a>=
=C2=A0 =C2=A0//=C2=A0 =C2=A0&quot;&quot;&quot;&quot;&quot;&quot;&quot;&quot=
;&quot;&quot;&quot;<br>
=C2=A0{pgp fingerprint} A891 3D55 5F2E 3A74 3965 B997 3EF2 8B0A BC02 DA2A<b=
r>
</blockquote></div>

--00000000000043053a05e518ba88--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFDf7ULUuqpcKaV6aM=rgSraSi2Vugw1QHBxgmsMSc1cpk3w%2BA>