Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2021-06-03 18:19:04


On 6/3/21 8:42 PM, Niall Douglas via Boost wrote:
> On 03/06/2021 14:54, Andrey Semashev via Boost wrote:
>
>> For the check_cxx_source_compiles calls, I would have liked to add
>> targets like Boost::config and Boost::winapi to CMAKE_REQUIRED_LIBRARIES
>> so that the checks are compiled with include directories of those
>> dependencies added in the command line. This doesn't work because these
>> targets may not be defined at the point when the configuration checks
>> are performed.
>
> You might find `if(TARGET <tgt>)` useful here.

I don't think that helps in this case. The point is not to skip
configuration checks if the target is not available. The checks must
execute, I just want to have a way to specify include directories even
when the targets are not yet defined.


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