mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Issue compile error if DATA_DIR is not set
This commit is contained in:
parent
5aaf3e66f7
commit
c622ca035b
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue