Line
Link Here
|
0 |
-- src/porting.cpp |
0 |
++ src/porting.cpp |
Lines 244-250
Link Here
|
244 |
|
244 |
|
245 |
pathRemoveFile(buf, '/'); |
245 |
pathRemoveFile(buf, '/'); |
246 |
|
246 |
|
247 |
path_share = std::string(buf) + "/../share/" + PROJECT_NAME; |
247 |
path_share = std::string(SHAREDIR); |
248 |
//path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME; |
248 |
//path_share = std::string(INSTALL_PREFIX) + "/share/" + PROJECT_NAME; |
249 |
if (!fs::PathExists(path_share)) { |
249 |
if (!fs::PathExists(path_share)) { |
250 |
dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\""; |
250 |
dstream<<"WARNING: system-wide share not found at \""<<path_share<<"\""; |
251 |
-- src/cmake_config.h.in |
251 |
++ src/cmake_config.h.in |
Lines 4-9
Link Here
|
4 |
#define CMAKE_CONFIG_H |
4 |
#define CMAKE_CONFIG_H |
5 |
|
5 |
|
6 |
#define PROJECT_NAME "@PROJECT_NAME@" |
6 |
#define PROJECT_NAME "@PROJECT_NAME@" |
|
|
7 |
#define SHAREDIR "@SHAREDIR@" |
7 |
#define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" |
8 |
#define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@" |
8 |
#define VERSION_STRING "@VERSION_STRING@" |
9 |
#define VERSION_STRING "@VERSION_STRING@" |
9 |
#define USE_GETTEXT @USE_GETTEXT@ |
10 |
#define USE_GETTEXT @USE_GETTEXT@ |