4 Jun
2021
4 Jun
'21
4:41 a.m.
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.