Skip to content

Windows DLLs on the PATH #681

@FWiesner

Description

@FWiesner

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

  • headers in f"{self.package_folder}/include"
  • the linker library in f"{self.package_folder}/lib"
  • the dll and its pdb for debug in f"{self.package_folder}/bin"

package_info also includes (as proposed by AI)

self.runenv_info.define("PATH", os.path.join(self.package_folder, "bin"))

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

  • my binary dependency recipe is bad or
  • whether I need to use extra CMake macros/functions from cmake-conan or
  • whether I need to plug cmake-conan somehow into cmake install
  • or whether it is a totally different thing.

I would really like to understand what's wrong here.

Thanks in advance,
Florian

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions