Add INSTALL configuration.

This commit is contained in:
Howard Hinnant 2016-08-06 14:57:47 -04:00
parent b4ca58d9a8
commit 137c317cc6

12
tz.cpp
View File

@ -207,8 +207,20 @@ static std::string get_install()
return install;
}
#ifndef INSTALL
static const std::string install = get_install();
#else // INSTALL
#define STRINGIZEIMP(x) #x
#define STRINGIZE(x) STRINGIZEIMP(x)
static const std::string install = STRINGIZE(INSTALL) +
std::string(1, folder_delimiter) + "tzdata";
#endif // INSTALL
static
std::string
get_download_gz_file(const std::string& version)