<div dir="ltr">Thanks very much for the tips. I'll try both of those.<br><div><br></div><div>carl</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 24, 2024 at 5:35 AM Even Rouault <<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div>
<p><br>
</p>
<div>Le 24/06/2024 à 07:23, Carl Godkin via
PROJ a écrit :<br>
</div>
<blockquote type="cite">
<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 href="https://github.com/OSGeo/PROJ/blob/4aa16151b98926fbbe6d8504a770379c6733ac35/src/lib_proj.cmake#L417" target="_blank">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"> </div>
<blockquote type="cite">
<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">
<div dir="ltr">
<div><br>
</div>
<div>Thanks a lot,</div>
<div><br>
</div>
<div>carl</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
PROJ mailing list
<a href="mailto:PROJ@lists.osgeo.org" target="_blank">PROJ@lists.osgeo.org</a>
<a href="https://lists.osgeo.org/mailman/listinfo/proj" target="_blank">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre cols="72">--
<a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</blockquote></div>