# Boost-Build :

Subject: Re: [Boost-build] configuring b2 via appveyor
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-12-07 00:45:33

AMDG

On 12/06/2017 04:47 PM, Stefan Seefeld via Boost-build wrote:
> <snip>
> So the error seems related to the use of the %CHUNK% variable, which is defined as
>
> set "CHUNK=^<include^>%VCPKG%\include ^<search^>%VCPKG%\lib"
>
> (I can't claim I understand the syntax.

> suggests I need to quote the entire assignment rather than just the right-side
> hand, to avoid the quotation marks to be included in the variable. And I need
> the '^' to prevent cmd.exe from interpreting the '>' character in the value...)
>

I tried pasting it into a batch file and
it seems to work. Obviously appveyor is
doing something subtly different, but it
isn't exactly clear what. It seems like it's
getting one extra round of evaluation, somehow.

> This is why I had hoped that someone else had already generated user-config.jam
> files in appveyor.yml files, so I could simply learn from that experience,
> rather than stumbling around in the dark as I do now.
>

You can avoid using user-config.jam for this
by setting the environmental variables,
ZLIB_INCLUDE/ZLIB_LIBRARY_PATH (and similar
variables for the other libraries). It will
probably also work if you use
b2 ... include=%VCPKG%\include library-path=%VCPKG%\lib
although I don't think I've actually tested this.

In Christ,
Steven Watanabe