find_package behavior depends on enabled languages in `project`.
In case a project uses language NONE
instead of the implicit C
default,
the search pathes for CMake Modules are significantly reduced.
According to cmake --debug-find
output, the paths are reduced to:
$HOME
/usr/local
/usr
/
CMake Modules which are arch dependent are typically installed into
/usr/lib64
or similar.
While at first glance it may seem questionable to lookup an arch dependent package in combination with language NONE, it is actually quite useful. In some cases only an imported executable, a configuration file path or other Component is required, and most projects use one Module for all Components.
Some references:
Edited by StefanBruens