How to specify search path for find_package?
I can add it to CMAKE_MODULE_PATH but if it is not there then the search continues in PATH - it is necessary that it searches only in the specified path.
You can check the version of the package. But it is more difficult if there is the same version compiled with different settings.
CMAKE_PREFIX_PATH