From fbc6106e810934ec95a2384abebb635de661c7a6 Mon Sep 17 00:00:00 2001 From: erikjanp Date: Sun, 23 Jan 2022 14:04:31 +0100 Subject: [PATCH] Fix #16426: Empty changelog when installed to non-standard prefix --- CMakeLists.txt | 1 + src/openrct2/platform/Platform.Linux.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ec824a8df2..4a07d7ddd9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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" diff --git a/src/openrct2/platform/Platform.Linux.cpp b/src/openrct2/platform/Platform.Linux.cpp index a2cf73b05b..e47c1c4e59 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -64,6 +64,7 @@ namespace Platform static const utf8* searchLocations[] = { "./doc", "/usr/share/doc/openrct2", + DOCDIR, }; for (auto searchLocation : searchLocations) {