mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-17 13:02:49 -05:00
Use CMAKE_INSTALL_DATADIR to look for the data dir.
This commit is contained in:
parent
bd3ae05fcf
commit
93ab7eb058
@ -149,9 +149,9 @@ elseif(APPLE)
|
|||||||
else()
|
else()
|
||||||
include(GNUInstallDirs)
|
include(GNUInstallDirs)
|
||||||
|
|
||||||
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}")
|
set(BIN_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}")
|
||||||
set(PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/keepassx")
|
set(PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}/keepassx")
|
||||||
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/keepassx")
|
set(DATA_INSTALL_DIR "${CMAKE_INSTALL_FULL_DATADIR}/keepassx")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_TESTS)
|
if(WITH_TESTS)
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
#define KEEPASSX_PLUGIN_DIR "${PLUGIN_INSTALL_DIR}"
|
#define KEEPASSX_PLUGIN_DIR "${PLUGIN_INSTALL_DIR}"
|
||||||
|
|
||||||
|
#define KEEPASSX_DATA_DIR "${DATA_INSTALL_DIR}"
|
||||||
|
|
||||||
#cmakedefine HAVE_PR_SET_DUMPABLE 1
|
#cmakedefine HAVE_PR_SET_DUMPABLE 1
|
||||||
#cmakedefine HAVE_RLIMIT_CORE 1
|
#cmakedefine HAVE_RLIMIT_CORE 1
|
||||||
#cmakedefine HAVE_PT_DENY_ATTACH 1
|
#cmakedefine HAVE_PT_DENY_ATTACH 1
|
||||||
|
@ -173,6 +173,8 @@ FilePath::FilePath()
|
|||||||
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
|
||||||
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../share/keepassx")) {
|
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../share/keepassx")) {
|
||||||
}
|
}
|
||||||
|
else if (testSetDir(KEEPASSX_DATA_DIR)) {
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources")) {
|
else if (testSetDir(QCoreApplication::applicationDirPath() + "/../Resources")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user