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?