montjet
montjet

Reputation: 635

conanfile.py should use currently cloned source files

I have a project that contains source files and conanfile.py. All the examples of conanfile.py show to clone source files from a repository and then build them, but in my case cloning is a waste of time as the source files are together with the conanfile.py file.

How can I define conanfile.py to use currently cloned source files?

Upvotes: 0

Views: 238

Answers (1)

uilianries
uilianries

Reputation: 3887

Please, read https://docs.conan.io/en/latest/creating_packages/package_repo.html

The magic is under exports_sources. It will copy all files listed (or matched) on that attribute, then, Conan will copy to your Conan cache, so you can build without clone.

Upvotes: 3

Related Questions