Date: Sun, 31 Jul 2022 09:17:53 +0200 From: Felix Palmen <felix@palmen-it.de> To: ports@freebsd.org Subject: Re: cmake cxx standard and USES compiler:c++{17,14,11}-lang Message-ID: <20220731071753.cqg4wkclcpqzpatk@nexus.home.palmen-it.de> In-Reply-To: <CAFDf7UJ-cXVtGjLE6=GyJbjRxb6yaKghoPXy_ED7cDFkUd3=%2Bw@mail.gmail.com> References: <CAFDf7UJ-cXVtGjLE6=GyJbjRxb6yaKghoPXy_ED7cDFkUd3=%2Bw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--z6y7qo5y3aaynioe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > --- >=20 > 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 --=20 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 --z6y7qo5y3aaynioe Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEqJE9VV8uOnQ5ZbmXPvKLCrwC2ioFAmLmLJsACgkQPvKLCrwC 2irWMQgAuG8AFC2Ti+tYYRxmQ6/QW71ZnCqNosB+v1mz7SRw2dAqc6TvH/jGuBNG UBqdiCl+ZQy0UINnJoO0y3bY8LswCNFH2wKZoB0NjR8x66R68Ctq4Xo/6RuHpaCJ tjQnvvMX9XnpYFyQ47opAzjPccxW9njBdrCGMgZYm/j5oSnhG/0NaDIfQW1foo09 fth9vPbR7Sk4ljS4z8TnvvdGMTifw6BPl82WatFCMiCwOhdA3l1sRhy6Jd/8m0+c /Yjk3vJy7VF+deidbqNVdMGWWlZEIE27pmEn129FX6m7TJMn0//EvP3mfTmO8Olq EJocFVvT62/kzRvnkkplU1rOrC4elQ== =KgFY -----END PGP SIGNATURE----- --z6y7qo5y3aaynioe--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220731071753.cqg4wkclcpqzpatk>