find_package can't find Find<lib>.cmake

I get the following error for a dependency fetched by Conan:

CMake Error at /home/rince/MyApp/CMakeLists.txt:19 (find_package):
  By not providing "Findyaml-cpp.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "yaml-cpp",
  but CMake did not find one.

The Findyaml-cpp.cmake file is in the conan-dependencies directory, which I tried to set with various variables, including CMAKE_MODULE_PATH. I turned on the option CMAKE_FIND_DEBUG_MODE, and now I get the following earlier in the output:

CMake Debug Log at /home/MyApp/CMakeLists.txt:19 (find_package):
  find_package considered the following paths for yaml-cpp.cmake

    /usr/share/cmake-3.22/Modules/Findyaml-cpp.cmake

  The file was found at

    conan-dependencies/Findyaml-cpp.cmake

But I still get the error later in the output. So, it seems that CMake is able to find the file, but then later it gives an error message that the file can’t be found?

You can use --debug-find to get a trace of what’s going on here.

The output looks the same as with the CMAKE_FIND_DEBUG_MODE option turned on.

I still get the output:

CMake Debug Log at /home/rince/MyApp/CMakeLists.txt:19 (find_package):
  find_package considered the following paths for yaml-cpp.cmake

    /usr/share/cmake-3.22/Modules/Findyaml-cpp.cmake
The file was found at

    conan-dependencies/Findyaml-cpp.cmake

And then later:

 By not providing "Findyaml-cpp.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "yaml-cpp",
  but CMake did not find one.

It says the file was found under conan-dependencies. I suspect there is some missing context between these that is relevant. Can you please provide the full output?