Hi
I’m still missing a solution.
2- override
FindThirdPartyLib
system wide: don’t know how, risk of imposing the wrong logic to unrelated projects
Lead to open this: Calling CMake "default" Find<Module> from a user defined one but I’m really unsure that it could be a solution.
What could be the cleaner way ?
Please keep in mind that an important part of my building process is that the package configuration file creation is automated (in fact, I only need to declare my dependencies with a macro that do a find_package
, target_link_libraries
and set appropriate var for listing the dependencies name within the configuration files (those names are passed to find_dependency
). This design can be improved but my goal is to avoid writing the configuration file manually.