From nobody Sun Jul 31 07:17:53 2022 X-Original-To: ports@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LwXdy0RzGz4X7Sp for ; Sun, 31 Jul 2022 07:17:58 +0000 (UTC) (envelope-from felix@palmen-it.de) Received: from stef.palmen-it.de (stef.palmen-it.de [IPv6:2001:470:1f0b:bbb:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4LwXdx0wZsz431t for ; Sun, 31 Jul 2022 07:17:57 +0000 (UTC) (envelope-from felix@palmen-it.de) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=palmen-it.de; s=20200414; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:Sender:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ikyLBgryyYTgbX31rLw7NCJvCMwSqVX8HYi4q2vZKWs=; b=Vrhhqkax77mCboh932NQ26XIR1 w2soER0r+j9xA4wcuujNp/25ROtpJHahtlPhurN/hDDmqF8X3HR1F5YaprJGEEFV67PtjpwKcbjr7 dihH3YaMvKbiGcTUNcJbLYOXZdYqqmFf43h4yLKa+9BKKmA/gBdVcKmdrZVd7gZWh06Yc9nAysu+a W4pNdhBsx4+RJTmQJUwF/zs++6h727v+RzNNCGBFov2as3GPy5dHZ5wNtIVWKFLPjO4kfCncBXhqK X03QxgKVxvikG4JM+TuKnVdXSJVA1HJKz9R638cbRXSLMrGGFfqhw0QWmIwCLldvUVemIrbs+nTrI YsbPZ/xw==; Received: from [192.168.71.101] (helo=mail.home.palmen-it.de) by stef.palmen-it.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1oI3D0-007JmB-EY for ports@freebsd.org; Sun, 31 Jul 2022 09:17:54 +0200 Received: from nexus.home.palmen-it.de ([192.168.99.2]) by mail.home.palmen-it.de with esmtpsa (TLS1.3) tls TLS_CHACHA20_POLY1305_SHA256 (Exim 4.95 (FreeBSD)) (envelope-from ) id 1oI3D0-000Amc-4Z for ports@freebsd.org; Sun, 31 Jul 2022 07:17:54 +0000 Date: Sun, 31 Jul 2022 09:17:53 +0200 From: Felix Palmen 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> X-Face: /1K@t"h.}e~pR@]c7HorQ!T`F^RJCa'BCr#e>IKA{>C/9OTGB4|xh"y2{?1Z5M i2w"AH^pN_LlHR^{+f',_Np~;.B;!M/bL}*qk]p5*r7F5vW};{:@4u5S?T&f0$7BJ-71Q5SV]:v$`5 A0[DZ:=?S52x8HJ~5@^P_\T@MsjG{R( Organization: palmen-it.de References: List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="z6y7qo5y3aaynioe" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20220429 X-Rspamd-Queue-Id: 4LwXdx0wZsz431t X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=palmen-it.de header.s=20200414 header.b=Vrhhqkax; dmarc=pass (policy=none) header.from=palmen-it.de; spf=pass (mx1.freebsd.org: domain of felix@palmen-it.de designates 2001:470:1f0b:bbb:1::1 as permitted sender) smtp.mailfrom=felix@palmen-it.de X-Spamd-Result: default: False [-8.80 / 15.00]; SIGNED_PGP(-2.00)[]; DWL_DNSWL_MED(-2.00)[palmen-it.de:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[palmen-it.de,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_DKIM_ALLOW(-0.20)[palmen-it.de:s=20200414]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f0b:bbb:1::1]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; RCVD_IN_DNSWL_MED(-0.20)[2001:470:1f0b:bbb:1::1:from]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; HAS_ORG_HEADER(0.00)[]; TO_DN_NONE(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[palmen-it.de:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --z6y7qo5y3aaynioe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Nuno, * Nuno Teixeira [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: BR, Felix --=20 Dipl.-Inform. Felix Palmen ,.//.......... {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--