Issue compile error if DATA_DIR is not set

This commit is contained in:
AsamK 2015-08-27 01:44:45 +02:00
parent 5aaf3e66f7
commit c622ca035b

View File

@ -782,6 +782,9 @@ static bool checkAccount(std::string accountdir, AccountDetails &account,std::ma
#else
/* For Linux, the data directory is set in libretroshare.pro */
#ifndef DATA_DIR
#error DATA_DIR variable not set. Cannot compile.
#endif
dataDirectory = DATA_DIR;
std::cerr << "getRetroshareDataDirectory() Linux: " << dataDirectory << std::endl;