Fwd: Embedded install paths in CMake files for Boost 1.79

Alex via Boost-build <[email protected]> Tue, 7 Jun 2022 14:00:55 +0100
Newsgroups gmane.comp.lib.boost.build
Message-ID <CAEMDno-B3fLV8XzuEGrVDAwhMDmOs+NNES5V=HcC62vjR6QNvQ@mail.gmail.com>
--===============7055615949904002645==
Content-Type: multipart/alternative; boundary="00000000000089c69b05e0db2efe"

--00000000000089c69b05e0db2efe
Content-Type: text/plain; charset="UTF-8"

I'm trying to make a build of Boost that includes the generated CMake files.

For my case, I need to install the files to a staging area before packaging
them up for installation in the target environment. I've tried "b2
--stagedir <dir> stage" but the generated CMake files still include the
stagedir path in them, instead of the install prefix specified during
bootstrap, which triggers errors in the packaging system. I'm also not sure
if it's then possible to just install the headers to the same staging
location.

Is there a way to install to a staging location while the CMake files have
the paths to the final install location? CMake uses CMAKE_STAGING_PREFIX
for this but I can't find an equivalent for b2. I guess it must be required
for cross-compiling though, if you want to support CMake on the target?

Regards,
Alex

--00000000000089c69b05e0db2efe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr">I&#39;m trying=
 to make a build of Boost that includes the generated CMake files.<div><br>=
</div><div>For my case, I need to install the files to a staging area befor=
e packaging them up for installation in the target environment. I&#39;ve tr=
ied &quot;b2 --stagedir &lt;dir&gt; stage&quot; but the generated CMake fil=
es still include the stagedir path in them, instead of the install prefix s=
pecified during bootstrap, which triggers errors in the packaging system. I=
&#39;m also not sure if it&#39;s then possible to just install the headers =
to the same staging location.</div><div><br></div><div>Is there a way to in=
stall to a staging location while the CMake files have the paths to the fin=
al install location? CMake uses CMAKE_STAGING_PREFIX for this but I can&#39=
;t find an equivalent for b2. I guess it must be required for cross-compili=
ng though, if you want to support CMake on the target?</div><div><br></div>=
<div>Regards,</div><div>Alex</div></div>
</div></div>

--00000000000089c69b05e0db2efe--

--===============7055615949904002645==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build

--===============7055615949904002645==--