Is CMAKE_PREFIX_PATH recursively searched?

It is, no doubt.

My point was that we may want to enforce the fact that the globbing expression is resolved only once.
And not each time CMake uses CMAKE_PREFIX_PATH content.

I think this is the same idea as yours:

So if I may summarize:

  1. we may want to have a way to specify globbing expression in CMAKE_PREFIX_PATH
    which collect all paths used by find_xxx command
  2. we don’t want that for CMAKE_MODULE_PATH

I would add that globbing expression in CMAKE_PREFIX_PATH should ideally be processed only once.