<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 24/06/2024 à 07:23, Carl Godkin via
PROJ a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAE=8km=2=WSjuY1LfXzyCqcBqoMGn4OBE9QqmWYzioGWVDM+Ng@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>We use PROJ 9.3.1 in our software.</div>
<div><br>
</div>
<div>I built it with cmake using curl and libtiff for Windows
64.</div>
<div><br>
</div>
<div>I also needed to build a minimal version to be used in a
plugin to another application where I cannot use curl and I've
done that successfully.</div>
<div><br>
</div>
<div>But both DLLs (i.e., the "regular" one and the "minimal"
one) are named "proj_9_3.dll" </div>
<div><br>
</div>
<div>I would love to change the DLL name of one of them but I
don't see a cmake variable for doing that. I am not a cmake
expert by any means, so perhaps I missed something. <br>
</div>
</div>
</blockquote>
<p>No, you didn't miss anything. This isn't configurable. But you
can easily change it by modifying the value of the OUTPUT_NAME at
line
<a class="moz-txt-link-freetext" href="https://github.com/OSGeo/PROJ/blob/4aa16151b98926fbbe6d8504a770379c6733ac35/src/lib_proj.cmake#L417">https://github.com/OSGeo/PROJ/blob/4aa16151b98926fbbe6d8504a770379c6733ac35/src/lib_proj.cmake#L417</a></p>
<p>I suspect you could also probably override it after the fact by
calling PROJ's CMakeLists.txt from a CMakeLists.txt of yours and
doing a "set_target_properties(proj PROPERTIES OUTPUT_NAME
"your_name")" afterwards, but I'm not totally sure about that.<br>
</p>
<div aria-hidden="true" style="top: 8320px; left: 150px;"
data-testid="navigation-cursor"
class="Box-sc-g0xbh4-0 code-navigation-cursor"> </div>
<blockquote type="cite"
cite="mid:CAE=8km=2=WSjuY1LfXzyCqcBqoMGn4OBE9QqmWYzioGWVDM+Ng@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>I imagine I could get into the generated makefiles for my
minimal version but editing cmake-generated makefiles is not
really a sustainable solution.</div>
<div><br>
</div>
<div>Is there a way to specify the DLL name?</div>
<div><br>
</div>
<div>I have the same question for GDAL but figured I'd start
with the simpler-to-build PROJ library.</div>
</div>
</blockquote>
<p>GDAL has actually a CMake cache variable to customize this:
GDAL_LIB_OUTPUT_NAME<br>
</p>
<blockquote type="cite"
cite="mid:CAE=8km=2=WSjuY1LfXzyCqcBqoMGn4OBE9QqmWYzioGWVDM+Ng@mail.gmail.com">
<div dir="ltr">
<div><br>
</div>
<div>Thanks a lot,</div>
<div><br>
</div>
<div>carl</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
PROJ mailing list
<a class="moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>