mirror of https://github.com/minetest/minetest.git
fix path_share
make path_share look explicitly in SHAREDIR instead of potentially-broken relative path
This commit is contained in:
parent
8d2419af1b
commit
9531a2a768
|
@ -4,6 +4,7 @@
|
|||
#define CMAKE_CONFIG_H
|
||||
|
||||
#define CMAKE_PROJECT_NAME "@PROJECT_NAME@"
|
||||
#define SHAREDIR "@SHAREDIR@"
|
||||
#define CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
|
||||
#define CMAKE_VERSION_STRING "@VERSION_STRING@"
|
||||
#ifdef NDEBUG
|
||||
|
|
|
@ -259,7 +259,7 @@ void initializePaths()
|
|||
|
||||
pathRemoveFile(buf, '/');
|
||||
|
||||
path_share = std::string(buf) + "/../share/" + PROJECT_NAME;
|
||||
path_share = std::string(SHAREDIR);
|
||||
//path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME;
|
||||
if (!fs::PathExists(path_share)) {
|
||||
dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\"";
|
||||
|
|
Loading…
Reference in New Issue