Merge pull request #16489 from Gymnasiast/fix/16426

Fix #16426: Empty changelog when installed to non-standard prefix
This commit is contained in:
Michael Steenbeek 2022-03-07 18:20:20 +01:00 committed by GitHub
commit 11ce0e8f8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -415,6 +415,7 @@ endif ()
if (NOT MACOS_BUNDLE OR (MACOS_BUNDLE AND WITH_TESTS))
# Install
# 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")
list(APPEND DOC_FILES "${ROOT_DIR}/contributors.md"
"${ROOT_DIR}/licence.txt"

View File

@ -63,6 +63,7 @@ namespace Platform
static const utf8* searchLocations[] = {
"./doc",
"/usr/share/doc/openrct2",
DOCDIR,
};
for (auto searchLocation : searchLocations)
{