date
date copied to clipboard
Could we have an option to pass the DB path at runtime?
I simply want to use my own downloaded DB, but it's a little frustrating to get it to work on multiple platforms because the installation location is a compile time setting. This doesn't work too great on larger multiplatform projects where something like TZ might belong inside a sub library.
It would be lovely if all the auto update stuff and platform-specific was separated out into some sort of helper library. I already have all that stuff covered in my own libraries.
I just want to include the header files, then call some function to initialise the library passing in my own path to the DB.
Ok, I found it. Silly me.
date::set_install
All good.
Although I think it would be cleaner if it wasn't necessary to have to add things like ;INSTALL=.;HAS_REMOTE_API=0 just to get it to compile, when I know I'm going to use set_install().