-
Notifications
You must be signed in to change notification settings - Fork 254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows DLLs on the PATH #681
Comments
actually, I guess the most versatile option would be to be able to use find_package(${conan_managed_dep} REQUIRED)
install(TARGETS ${conan_managed_dep_target_name} DESTINATION ${location}) But, trying this with the target names produced by cmake-conan this will not work as the targets cannot be found. Say, cmake-conan logs
then it seems that this target is only available internally to Conan and is not made available to my build |
Hi @FWiesner Thanks for your feedback
In theory this is not necessary. As long as the binaries are in the
The location of binaries for debugging/running in the IDE is defined at the moment by I'll try to make a proof of concept today if possible about this, it might take a bit to fully connect all the pieces, but lets keep moving forward. |
Correction: what I am trying only applies for VS, not CLion, not sure what is the correct setup for CLion for this case. |
I had reached out to Jetbrains for CLion support when the project you run has the need to load DLLs that are in different build (sub-)directories. Their recommendation is to stage everything together and that is the reason why I am thinking of the use of |
until the new CMakeDeps moves from incubation to maturity, I wonder whether I could reliably leverage |
This is an internal implementation detail, but on the other hand, it is not very likely to change its name in the following releases, so might be a possible workaround in the meantime. The disadvantage is that you need to know the package names and iterate them or something like that, there is no aggregated variable for this. Also, it also needs to assume that the dlls to pick are always in the "bin" folder of the package. 99% of the times it is this way, but it might be possible to find some package that puts the binaries in some other unconventional directory. |
so, we have a commercial binary package that we bundle up using Conan 2.11.0. Our own project builds on Windows and Linux and as the dependency contains a DLL, we package the dependency package for Windows with the following standard structure
f"{self.package_folder}/include"
f"{self.package_folder}/lib"
f"{self.package_folder}/bin"
package_info also includes (as proposed by AI)
So, packaging works and linking as well. When trying to run the application that depends on the package from the IDE (latest CLion), Windows unfortunately reports that the DLL could not be found.
Now I wonder whether
cmake-conan
orcmake-conan
somehow intocmake install
I would really like to understand what's wrong here.
Thanks in advance,
Florian
The text was updated successfully, but these errors were encountered: