-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
Hi @memsharded, I've tried the new CMakeDeps generator, and ran into some problems:
- Packages that use
cmake_find_mode=nonewith afooConfig.cmakefile in thecpp_info.builddirspath (https://docs.conan.io/2/reference/tools/cmake/cmakedeps.html#disable-cmakedeps-for-installed-cmake-configuration-files) are no longer discovered. This path will need to be added toCMAKE_FIND_ROOT_PATHbyconan_cmakedeps_paths.cmake. Adding them toCMAKE_PREFIX_PATHalone would not be sufficient in the case of cross-compilation, unless the~/.conan2/p/b/fooabc/pis already in theCMAKE_FIND_ROOT_PATH. - There appears to be something wrong with the capitalization of the generated CMake targets. For example, when building a package
foothat depends on OpenBLAS, the generated targetfoo::fooby Conan depends onopenblas::openblas, whereas the actual generated OpenBLAS target isOpenBLAS::OpenBLAS.
If useful, I could open new issues with more information.
Originally posted by @tttapa in #16324 (comment)
Reactions are currently unavailable