Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2021-06-04 04:41:22


> Alexander Grund wrote:
> > > - CMake 3.9: required by Nowide, I'm not sure why.
> ...
> > I use find_dependency there which requires 3.9.
>
> find_dependency doesn't require 3.9, but passing it arbitrary arguments does.
> Before 3.9 it only accepts a version.
>
> https://cmake.org/cmake/help/v3.5/module/CMakeFindDependencyMacro.h
> tml
> https://cmake.org/cmake/help/v3.9/module/CMakeFindDependencyMacro.h
> tml
>
> Your use in Nowide should work on 3.5.

Oh, by the way, the find_dependency line in the config file is executed when
the installed library is used by find_package, which is done by a different cmake,
so requiring the current version to be 3.9 doesn't help, you still need to guard it
if you use e.g. COMPONENTS.


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