diff --git a/CMakeLists.txt b/CMakeLists.txt index 5556e63842..0701552155 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 1b85e367a6..5f54dae5db 100644 --- a/src/openrct2/platform/Platform.Linux.cpp +++ b/src/openrct2/platform/Platform.Linux.cpp @@ -63,6 +63,7 @@ namespace Platform static const utf8* searchLocations[] = { "./doc", "/usr/share/doc/openrct2", + DOCDIR, }; for (auto searchLocation : searchLocations) {