mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Fix #16426: Empty changelog when installed to non-standard prefix
This commit is contained in:
parent
a6042b8903
commit
fbc6106e81
2 changed files with 2 additions and 0 deletions
|
@ -415,6 +415,7 @@ endif ()
|
||||||
if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
|
if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
|
||||||
# Install
|
# Install
|
||||||
# Don't recurse, grab all *.txt and *.md files
|
# Don't recurse, grab all *.txt and *.md files
|
||||||
|
add_definitions(-DDOCDIR="${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}")
|
||||||
file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt")
|
file(GLOB DOC_FILES "${ROOT_DIR}/distribution/*.txt")
|
||||||
list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md"
|
list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md"
|
||||||
"${ROOT_DIR}/licence.txt"
|
"${ROOT_DIR}/licence.txt"
|
||||||
|
|
|
@ -64,6 +64,7 @@ namespace Platform
|
||||||
static const utf8* searchLocations[] = {
|
static const utf8* searchLocations[] = {
|
||||||
"./doc",
|
"./doc",
|
||||||
"/usr/share/doc/openrct2",
|
"/usr/share/doc/openrct2",
|
||||||
|
DOCDIR,
|
||||||
};
|
};
|
||||||
for (auto searchLocation : searchLocations)
|
for (auto searchLocation : searchLocations)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue