Boost logo

Boost :

Subject: Re: [boost] CMake and Boost Build tests
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2017-07-27 21:26:59


AMDG

On 07/27/2017 06:43 AM, Florent Castelli via Boost wrote:
>
> It is possible to do "compile" by creating a regular static library
> target with that file and then invoking "cmake --build . --target
> <compile test name>". Compile failures can be done similarly and check
> they fail.
> Link and Link-fail can be done the same way using actual binaries that
> are built, but not run.
>
> <snip>
>
> The problem is that some build tools will not support parallel
> invocations (Ninja doesn't for example, see
> https://groups.google.com/forum/#!topic/ninja-build/4VP7whvWSH8 ) and
> thus running tests would be need to be linearized or moved to make,
> which should support that scenario better.
>

  Whoa. I always thought that this recursive CMake
invocation was a bit odd, but you're saying that it's
basically a hack that isn't really supported. Is
there any solution to this?

In Christ,
Steven Watanabe


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk