<div dir="ltr"><div dir="ltr"><br></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">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></blockquote></div></blockquote><div>I just used the first approach. For anyone else coming back to this, OUTPUT_NAME shouldn't the include ".dll" </div><div><br></div><div>> GDAL has actually a CMake cache variable to customize this: GDAL_LIB_OUTPUT_NAME<br><br>And of course this worked as expected. (Once again, leave off the ".dll" part.)</div><div><br></div><div>Thanks again, Even!</div><div><br></div><div>carl</div></div></div>