Use CMAKE_INSTALL_DATADIR to look for the data dir.

This commit is contained in:
Felix Geyer
2015-04-08 18:07:53 +02:00
parent bd3ae05fcf
commit 93ab7eb058
3 changed files with 7 additions and 3 deletions

View File

@@ -173,6 +173,8 @@ FilePath::FilePath()
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../share/keepassx")) {
}
else if (testSetDir(KEEPASSX_DATA_DIR)) {
}
#endif
#ifdef Q_OS_MAC
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources")) {