<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
I found the difference. <br>
<br>
The way to reproduce it is to call cmake with
"-DBUILD_SHARED_LIBS=ON -DWITH_TESTS=ON". Without
BUILD_SHARED_LIBS, gtest only builds a '.a' file under the lib
directory in the build directory which is fine. With
BUILD_SHARED_LIBS=ON, gtest also tries to build a .so in /src which
fails due to permissions. <br>
<br>
As PDAL builds shared libs by default anyway, the BUILD_SHARED_LIBS
option isn't necessary and can just be dropped from my build script.<br>
<br>
Thanks for the help and encouragement to sort this out.<br>
<br>
Jim<br>
<br>
<div class="moz-cite-prefix">On 9/16/19 10:26 AM, Andrew Bell wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CACJ51z37VaG+CDkscAP9YgT9+mJYeoyG99KkGRG-yRDbeQ63PQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">I'll just suggest again that there's something
special about this environment, because this is not an issue on
other similar systems.</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Sep 16, 2019, 17:23
Howard Butler <<a href="mailto:howard@hobu.co"
moz-do-not-send="true">howard@hobu.co</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
> On Sep 16, 2019, at 10:02 AM, Jim Klassen <<a
href="mailto:klassen.js@gmail.com" target="_blank"
rel="noreferrer" moz-do-not-send="true">klassen.js@gmail.com</a>>
wrote:<br>
> After multiple attempts at rummaging around, I think the
culprit is in 'cmake/gtest.cmake'. I suspect that
${gtest_BINARY_DIR} is unset. Based on comments in
'vendor/gtest/CMakeLists.txt' it appears that it may also use
this variable internally.<br>
<br>
Interesting. We're definitely doing non-sudo builds on other
platforms. I wonder how gtest_BINARY_DIR is getting properly
set in those cases.<br>
<br>
Howard<br>
_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank"
rel="noreferrer" moz-do-not-send="true">pdal@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/pdal"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.osgeo.org/mailman/listinfo/pdal</a></blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
pdal mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pdal@lists.osgeo.org">pdal@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/pdal">https://lists.osgeo.org/mailman/listinfo/pdal</a></pre>
</blockquote>
<br>
</body>
</html>