<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content="text/html; charset=UTF-8">
<style type="text/css" style="">
<!--
p
{margin-top:0;
margin-bottom:0}
-->
</style>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p>Hi Rene,</p>
<p><br>
</p>
<p><span>from what I have gathered from the CMake modernization, the dune.module is used to create a dependency DAG in CMake as well as in dunecontrol. Thus, I would only modify the version directly in the file instead of doing some sort of magic in CMake...</span>
Naturally, you can always write a pattern matching script in python that modifies the version at will (Example
<a href="https://gitlab.dune-project.org/copasi/dune-copasi/-/blob/ff426165a550c838a77f71fd9413b43874e53140/util/bump_version.py#L32" class="x_OWAAutoLink" id="LPlnk282238">
https://gitlab.dune-project.org/copasi/dune-copasi/-/blob/ff426165a550c838a77f71fd9413b43874e53140/util/bump_version.py#L32</a><a href="https://gitlab.dune-project.org/copasi/dune-copasi/-/blob/ff426165a550c838a77f71fd9413b43874e53140/util/bump_version.py#L35" class="x_OWAAutoLink" id="LPlnk428882"></a>).
I use it to bump versions, but nothing stops you from updating it in the CI directly. Just be aware that removing a pre-defined version from the dune.module will make your users to be dependent on having git and the scripting language you used to write the
version (e.g. python). IMHO, this dependency is not desirable.</p>
<p><br>
</p>
<p>Hope it helps :)</p>
<p><br>
</p>
<p>Best,</p>
<p>Santiago<br>
</p>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Dune-devel <dune-devel-bounces@lists.dune-project.org> on behalf of René Fritze <rene.fritze@wwu.de><br>
<b>Sent:</b> Monday, July 12, 2021 9:57:35 AM<br>
<b>To:</b> dune-devel@lists.dune-project.org<br>
<b>Subject:</b> [Dune-devel] "Dynamic" module version</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Dear all,<br>
<br>
I'm wondering if anybody is already using a mechanism to override the static <br>
"Version" field that Cmake reads from dune.module into `MODULE_NAME_VERSION`. <br>
I'm looking to either set this from something like git describe or an <br>
environment variable in CI, depending on release/dev pipeline etc.<br>
<br>
Cheers,<br>
René<br>
<br>
-- <br>
--------------------------------------------------<br>
Dipl.-Math. René Fritze (né Milk)<br>
University of Münster<br>
Institute for Applied Mathematics<br>
Orleans-Ring 10, R. 120.012<br>
48149 Münster Tel. +49 251 83-35131<br>
Germany<br>
--------------------------------------------------<br>
</div>
</span></font>
</body>
</html>