Open Erlkoenig90 opened 1 year ago
Hi @Erlkoenig90
Thanks for reporting. I think this is a known issue, would be a duplicated of https://github.com/conan-io/conan/issues/12654. I'd recommended closing this issue as duplicated and centralized discussion in the other one.
In short: this is a limitation of the available information in the cpp_info
of the dependencies, for shared libraries, as well as the CMakeDeps
target creation. There is pending a new model and CMakeDeps
implementation for the 2.X roadmap.
Environment details
Steps to reproduce
Create a simple project with
conanfile.txt
as follows:CMakeLists.txt:
Build it:
CMake outputs a warning:
The generated
build/cmake_install.cmake
will also not contain any mention of theglfw3.dll
file, but it will contain an installation command forlibusb-1.0.dll
. The installation directory contains the libusb DLL, but not the glfw one, even though it is available in~/.conan2
.I guess this is because the glfw DLL is called
glfw3.dll
while the import library is calledglfw3dll.lib
. The glfw recipe defines oneglfw3dll
library incpp_info
.Logs
No response