3 Jun
2021
3 Jun
'21
5:42 p.m.
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. Niall