Re: CMAKE_CXX_STANDARD

Larry Gritz <[email protected]> Fri, 13 Jul 2018 16:11:13 -0700
Newsgroups gmane.comp.video.openexr.devel
Message-ID <[email protected]>
--===============0482636526772826512==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_A835585F-EBAC-415C-90BB-A45457B9F8B2"


--Apple-Mail=_A835585F-EBAC-415C-90BB-A45457B9F8B2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

I don't see why we would have to preserve 2.x compatibility. USD seems =
to need CMake 3.1 on Windows. OpenVDB needs 3.1. OIIO and OSL both =
require 3.2. Partio requires 3.8!  So lack of support for 2.x would be =
in good company with other widely used packages.

A few people have commented on the VFX Platform forum that it should =
include a minimum cmake release, so that package maintainers can count =
on some reasonable minimum.=20



> On Jul 13, 2018, at 3:50 PM, Nick Porcino <[email protected]> wrote:
>=20
> The develop branch of OpenEXR uses CMake 3 features. So that line is =
an error.
>=20
> I hadn't thought about it, but it's troubling* to think that we might =
have to preserve compatibility with CMake 2.x
>=20
> * troubling =3D=3D sobbing in terror in the corner as the shambling =
revenant shadow of CMake 2 groans and lurches forward belching broken =
features and ad hoc syntax
>=20
>=20
> From: Openexr-devel =
<[email protected] =
<mailto:[email protected]>> on =
behalf of Larry Gritz <[email protected] <mailto:[email protected]>>
> Sent: Friday, July 13, 2018 11:47 AM
> To: [email protected] <mailto:[email protected]>
> Subject: [Openexr-devel] CMAKE_CXX_STANDARD
> =20
> Is anybody troubled by the fact that the OpenEXR CMakeLists.txt starts =
with
>=20
> CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
>=20
> but then makes use of CMAKE_CXX_STANDARD, which was only introduced =
with CMake 3.1?
>=20
> So I think that if anybody actually uses CMake < 3.1, it will just =
silently fail to provide the right -std=3Dc++XX flags.
>=20
>=20
> --
> Larry Gritz
> [email protected] <mailto:[email protected]>
>=20
>=20
>=20
>=20
>=20
> _______________________________________________
> Openexr-devel mailing list
> [email protected] <mailto:[email protected]>
> https://lists.nongnu.org/mailman/listinfo/openexr-devel =
<https://lists.nongnu.org/mailman/listinfo/openexr-devel>
--
Larry Gritz
[email protected]





--Apple-Mail=_A835585F-EBAC-415C-90BB-A45457B9F8B2
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">I =
don't see why we would have to preserve 2.x compatibility. USD seems to =
need CMake 3.1 on Windows. OpenVDB needs 3.1.&nbsp;OIIO and OSL both =
require 3.2.&nbsp;Partio requires 3.8! &nbsp;So lack of support for 2.x =
would be in good company with other widely used packages.<div =
class=3D""><br class=3D""></div><div class=3D"">A few people have =
commented on the VFX Platform forum that it should include a minimum =
cmake release, so that package maintainers can count on some reasonable =
minimum.&nbsp;</div><div class=3D""><br class=3D""></div><div =
class=3D""><br class=3D""><div><br class=3D""><blockquote type=3D"cite" =
class=3D""><div class=3D"">On Jul 13, 2018, at 3:50 PM, Nick Porcino =
&lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; font-family: Calibri, Helvetica, sans-serif; =
font-size: 12pt;" class=3D"">The develop branch of OpenEXR uses CMake 3 =
features. So that line is an error.</div><div style=3D"caret-color: =
rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" =
class=3D""><br class=3D""></div><div style=3D"caret-color: rgb(0, 0, 0); =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; font-family: =
Calibri, Helvetica, sans-serif; font-size: 12pt;" class=3D"">I hadn't =
thought about it, but it's troubling* to think that we might have to =
preserve compatibility with CMake 2.x</div><div style=3D"caret-color: =
rgb(0, 0, 0); font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none; font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" =
class=3D""><br class=3D""></div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><font face=3D"Calibri, Helvetica, =
sans-serif" class=3D"">* troubling =3D=3D sobbing in terror in the =
corner as the shambling revenant&nbsp;shadow of CMake 2 groans and =
lurches forward belching broken features and ad hoc =
syntax</font></div><div style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;" class=3D""><font face=3D"Calibri, Helvetica, sans-serif" =
class=3D""><br class=3D""></font></div><div style=3D"caret-color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;" class=3D""><font face=3D"Calibri, Helvetica, =
sans-serif" class=3D""><br class=3D""></font></div><hr tabindex=3D"-1" =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none; display: =
inline-block; width: 702.65625px;" class=3D""><span style=3D"caret-color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none; float: none; display: inline !important;" =
class=3D""></span><div id=3D"divRplyFwdMsg" dir=3D"ltr" =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
14px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;" class=3D""><font =
face=3D"Calibri, sans-serif" style=3D"font-size: 11pt;" class=3D""><b =
class=3D"">From:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Openexr-devel &lt;<a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; =
on behalf of Larry Gritz &lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt;<br class=3D""><b =
class=3D"">Sent:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>Friday, July 13, 2018 11:47 =
AM<br class=3D""><b class=3D"">To:</b><span =
class=3D"Apple-converted-space">&nbsp;</span><a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><b =
class=3D"">Subject:</b><span =
class=3D"Apple-converted-space">&nbsp;</span>[Openexr-devel] =
CMAKE_CXX_STANDARD</font><div class=3D"">&nbsp;</div></div><div =
class=3D"BodyFragment" style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 14px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;"><font size=3D"2" class=3D""><span style=3D"font-size: 11pt;" =
class=3D""><div class=3D"PlainText">Is anybody troubled by the fact that =
the OpenEXR CMakeLists.txt starts with<br class=3D""><br =
class=3D"">CMAKE_MINIMUM_REQUIRED(VERSION 2.8)<br class=3D""><br =
class=3D"">but then makes use of CMAKE_CXX_STANDARD, which was only =
introduced with CMake 3.1?<br class=3D""><br class=3D"">So I think that =
if anybody actually uses CMake &lt; 3.1, it will just silently fail to =
provide the right -std=3Dc++XX flags.<br class=3D""><br class=3D""><br =
class=3D"">--<br class=3D"">Larry Gritz<br class=3D""><a =
href=3D"mailto:[email protected]" class=3D"">[email protected]</a><br =
class=3D""><br class=3D""><br class=3D""><br class=3D""><br class=3D""><br=
 class=3D"">_______________________________________________<br =
class=3D"">Openexr-devel mailing list<br class=3D""><a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br class=3D""><a =
href=3D"https://lists.nongnu.org/mailman/listinfo/openexr-devel" =
class=3D"">https://lists.nongnu.org/mailman/listinfo/openexr-devel</a></di=
v></span></font></div></div></blockquote></div><br class=3D""><div =
class=3D"">
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space;" class=3D""><div style=3D"color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: =
0px;">--</div><div style=3D"color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;">Larry =
Gritz</div><div style=3D"color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a></div><div style=3D"color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=3D""><br=
 class=3D""></div><br class=3D"Apple-interchange-newline"></div><br =
class=3D"Apple-interchange-newline">
</div>
<br class=3D""></div></body></html>=

--Apple-Mail=_A835585F-EBAC-415C-90BB-A45457B9F8B2--


--===============0482636526772826512==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Openexr-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/openexr-devel

--===============0482636526772826512==--