Re: [CMake] find_package Module/Config mode and nontrivial package version checks

2018-10-05 Thread Joachim Wuttke
Module mode is only selected if there is a Find.cmake file available. Otherwise Config mode is used anyway. For a given project's call only one of the modes can be used: the find module is either present or it is not. If the find module is available it is used and becomes responsible for enforc

Re: [CMake] find_package Module/Config mode and nontrivial package version checks

2018-10-05 Thread Brad King
On 10/04/2018 02:36 PM, Joachim Wuttke wrote: > What then about user code that ought to check > for version compatibility? Module mode only offers a check > for an EXACT version string, and does not terminate if > that condition is not met [3]. Module mode is only selected if there is a Find.cmake

[CMake] find_package Module/Config mode and nontrivial package version checks

2018-10-04 Thread Joachim Wuttke
The find_package command docs [1,2] recommend that user code should generally look for packages using the Module mode signature. What then about user code that ought to check for version compatibility? Module mode only offers a check for an EXACT version string, and does not terminate if that cond