<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">git bash, quotes, make, this seems to
add a lot of complication when you could directly run cmake+ninja
for fast builds on windows.</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">I think you shoudn't try to pass
escaped quotes, but just quote the whole arguments as in</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"> ...
"-DINST_DATA=/c/prefix_path/shared"
"-DSYSCONF_DIR=/c/prefix_path/etc" ...</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Regards, Kai<br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix"><br>
</div>
<div class="moz-cite-prefix">Am 31.03.23 um 02:28 schrieb Andrew
Patterson:<br>
</div>
<blockquote type="cite"
cite="mid:CAC8biO2hrifYT0M4nxZ1YSD_C2TAFFSsFFUcFNuCtCCTVgB8QQ@mail.gmail.com">
<div dir="ltr">Hello!
<div><br>
We've been using a custom CMakeLists.txt for years to build a
subset of GDAL for Android but I'm attempting to move us to
building it properly. Unfortunately, we can't move to 3.5+
quite yet (I'm hoping soon) so I'm stuck with autoconf. I was
happily surprised at how quickly I passed through the
configure step (many thanks Google's NDK page with a very
helpful autoconf section) but now I'm running into a rather
stupid blocker.</div>
<div><br>
</div>
<div>I'm building this using git bash on a Windows machine, and
I suspect that's the root of my problem. Basically, when I run
make on my configured system, it screws up the quoting on
INST_DATA & SYSCONF_DIR. The command being executed looks
something like:</div>
<div><br>
</div>
<div>... yada yada ... -DINST_DATA=\"/c/prefix_path/shared\"
-DSYSCONF_DIR=\"/c/prefix_path/etc\"</div>
<div><br>
</div>
<div>If I copy the command being executed and change that part
to:</div>
<div>
<div><br>
</div>
<div>
<div>... yada yada ...
-DINST_DATA="\"/c/prefix_path/shared\""
-DSYSCONF_DIR="\"/c/prefix_path/etc\""</div>
<div><br>
</div>
</div>
<div>It works. It also works if fully remove the defines for
INST_DATA & SYSCONF_DIR, which I know is safe because we
never defined those in our old CMakeLists.txt and everything
worked fine (we were specifying the properly locations ahead
of time so it never needed to look in any default places).</div>
<div><br>
</div>
<div>Now, obviously manually copying the commands isn't the
right fix, but maybe someone knows how to fix the quoting?
Or, frankly, is there an option I'm missing (or some other
magic trick) to tell it not to include INST_DATA or
SYSCONF_DIR at all?</div>
<div><br>
</div>
<div>Any help here would be greatly appreciated! This looked
like it was going to be a quick job and it turned into a
frustrating full-day failure :(</div>
<br>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<table>
<tbody>
<tr>
<td><a
href="https://www.google.com/url?q=https://www.avenza.com/&source=gmail-html&ust=1678977468213000&usg=AOvVaw3ajVwWQPLnJ8kVQuKtUNKi"
rel="noreferrer" target="_blank"
moz-do-not-send="true"><img alt="Avenza Systems
Logo" moz-do-not-send="true" width="100"></a></td>
<td>
<p><b>Andrew Patterson</b><br>
Desktop Lead Architect</p>
<p>+1 (416) 487-5116 x401 <br>
84 Merton St., Toronto, ON, M4S 1A1</p>
<p>///<a
href="https://www.google.com/url?q=https://www.avenza.com/about/contact/&source=gmail-html&ust=1678977468213000&usg=AOvVaw0_nt7MnUyk1lGZCRk6wICQ"
rel="noreferrer" target="_blank"
moz-do-not-send="true">supply.founders.outreach</a></p>
</td>
</tr>
<tr>
<td colspan="3"><a
href="https://www.google.com/url?q=https://www.avenza.com/user-conference/&source=gmail-html&ust=1678977468213000&usg=AOvVaw2Uj9MQv3vk5IzdDU7m0ycG"
rel="noreferrer" target="_blank"
moz-do-not-send="true"><img alt="AvenzaUC2023
Banner" moz-do-not-send="true"></a></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>