<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/a3cbd09ac05a1ec6021ef757cc617506db6c1239">https://github.com/macports/macports-ports/commit/a3cbd09ac05a1ec6021ef757cc617506db6c1239</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit a3cbd09ac05a1ec6021ef757cc617506db6c1239
</span>Author: Chris Jones <jonesc@macports.org>
AuthorDate: Mon Jun 14 14:09:47 2021 +0100

<span style='display:block; white-space:pre;color:#404040;'>    cmake PG: Set CMake C/CXX STANDARD variables when specified
</span>---
 _resources/port1.0/group/cmake-1.1.tcl | 8 ++++++++
 1 file changed, 8 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/cmake-1.1.tcl b/_resources/port1.0/group/cmake-1.1.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 7091f90d480..349ed9a739e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/cmake-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/cmake-1.1.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -429,6 +429,14 @@ platform darwin {
</span>                 -DCMAKE_OSX_ARCHITECTURES="${configure.build_arch}"
         }
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+        # C/C++ standard
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {${compiler.cxx_standard} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            configure.args-append -DCMAKE_CXX_STANDARD=[string range ${compiler.cxx_standard} end-1 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        if {${compiler.c_standard} ne ""} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            configure.args-append -DCMAKE_C_STANDARD=[string range ${compiler.c_standard} end-1 end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>         # Setting our own -arch flags is unnecessary (in the case of a non-universal build) or even
         # harmful (in the case of a universal build, because it causes the compiler identification to
         # fail; see https://public.kitware.com/pipermail/cmake-developers/2015-September/026586.html).
</pre><pre style='margin:0'>

</pre>