You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package and Environment Details (include every applicable attribute)
Package Name/Version: spdlog/1.6.1
Operating System+version: Windows 10 (But it will happen on any OS)
Compiler+version: MSVC 2019
Conan version: conan 1.23.0
Python version: Python 3.8.1
Conan profile
$ conan profile show vs16Debug
Configuration for profile vs16Debug:
[settings]
os=Windows
os_build=Windows
arch=x86_64
arch_build=x86_64
compiler=Visual Studio
compiler.version=16
compiler.runtime=MDd
build_type=Debug
[options]
[build_requires]
[env]```
### Steps to reproduce (Include if Applicable)
Consume spdlog/1.6.1 with the conan client. Then try to consume the **spdlog** from other project being configured with CMake, as it is advised here:
https://github.com/gabime/spdlog/blob/v1.x/example/CMakeLists.txt
When running CMake, I have the following error:
```bash
CMake Error at cmake/findDependencies.cmake:8 (find_package):
By not providing "Findspdlog.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "spdlog", but
CMake did not find one.
Could not find a package configuration file provided by "spdlog" with any
of the following names:
spdlogConfig.cmake
spdlog-config.cmake
More details
The problem seems to be that in the spdlog conan recipe, some directories are removed in the package step (and one of these folders is the CMake one).
Please, read here to understand why they are not packaged.
As alternative, you should use cmake_find_package generator. It will generate Findxxx.cmake. If it doesn't work, please, open an issue reporting, because that generator is the way, so we should fix the recipe for any problem.
Package and Environment Details (include every applicable attribute)
Conan profile
More details
The problem seems to be that in the spdlog conan recipe, some directories are removed in the package step (and one of these folders is the CMake one).
https://github.com/conan-io/conan-center-index/blob/master/recipes/spdlog/all/conanfile.py
I do not understand why this folder is removed, when it is a valuable resource being installed in spdlog:
https://github.com/gabime/spdlog/blob/22a169bc319ac06948e7ee0be6b9b0ac81386604/CMakeLists.txt#L274-L324
The text was updated successfully, but these errors were encountered: