<div dir="ltr">Hi,<div><br></div><div>Sorry if this is an elementary cmake question but I am curious if there is a cleaner solution than I came up with.</div><div><br></div><div>I'm trying to build GDAL 3.8.3 with WEBP support.</div><div><br></div><div>I built libwebp 1.3.2 (the latest) without any problems, also using cmake.</div><div><br></div><div>However, when building GDAL, the link on the shared library fails since WEBP seems to require TWO libraries (in the libwebp package), libwebp and libsharpyuv. </div><div><br></div><div>My question is how can I persuade cmake to accept both libraries for WEBP_LIBRARY? </div><div><br></div><div>I thought quotes would help.  What I think I ought to be able to do is something like</div><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-variant-ligatures:none;word-break:normal;border-radius:4px;font-size:12px;line-height:1.50001;color:rgb(29,28,29)"><div class="gmail-p-rich_text_block--no-overflow" style="font-family:Monaco,Menlo,Consolas,"Courier New",monospace;box-sizing:inherit;overflow:hidden">   -DWEBP_LIBRARY="/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a /usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a" \</div><div class="gmail-p-rich_text_block--no-overflow" style="font-family:Monaco,Menlo,Consolas,"Courier New",monospace;box-sizing:inherit;overflow:hidden"><br></div><div class="gmail-p-rich_text_block--no-overflow" style="box-sizing:inherit;overflow:hidden"><font face="arial, sans-serif">or else</font></div></pre><pre class="gmail-c-mrkdwn__pre" style="box-sizing:inherit;margin-top:4px;margin-bottom:4px;padding:8px;font-variant-ligatures:none;word-break:normal;border-radius:4px;font-size:12px;line-height:1.50001;color:rgb(29,28,29);font-family:Monaco,Menlo,Consolas,"Courier New",monospace"><div class="gmail-p-rich_text_block--no-overflow" style="box-sizing:inherit;overflow:hidden">   "-DWEBP_LIBRARY=/usr/local/devlibs/libwebp-1.3.2/lib64/libwebp.a /usr/local/devlibs/libwebp-1.3.2/lib64/libsharpyuv.a" \</div></pre><div>but both options produce link lines that include the double quotes!  This is an issue on Windows and Linux for me.<br></div><div><br></div><div>I have a couple of workarounds that I won't bore you with, but I was wondering what the best practice is here (other than hand-editing the cmake output of course).</div><div><br></div><div>I think that libwebp added the "sharpyuv" stuff at version 1.3.0 so perhaps using an older version would also work, but that doesn't seem sustainable.</div><div><br></div><div>Thanks for suggestions,</div><div><br></div><div>carl</div><div><br></div></div>