date icon indicating copy to clipboard operation
date copied to clipboard

Could we have an option to pass the DB path at runtime?

Open oviano opened this issue 3 years ago • 2 comments

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.

oviano avatar Jul 16 '21 13:07 oviano

Ok, I found it. Silly me.

date::set_install

All good.

oviano avatar Jul 16 '21 14:07 oviano

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().

oviano avatar Jul 16 '21 14:07 oviano