laserpants / dotenv-cpp

:cow: A utility to load environment variables from a .env file
BSD 3-Clause "New" or "Revised" License
30 stars 12 forks source link

Please try to get this into vcpkg repository #8

Open scottw-finao opened 5 days ago

scottw-finao commented 5 days ago

It would be great if this could be loaded with a dependency package manager like vcpkg or conan

scottw-finao commented 5 days ago

Looking into the 'how' of it:

The give an example on how it can be done with a non-repo target such as a github repository:

Packaging GitHub repos function vcpkg_from_github

so basically it would not require a library be 'added' to an official vcpkg repository to install it, but their method/example requires an 'install' target be in the cmake configuration for the project in question.

I don't know enough about cmake to script a way around it in the vcpkg or the port files. (i.e. if you added a simple install target it might work using the above method)