From d6285d52e7d265248502b5b5c01557776d8d6ac5 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 4 Aug 2017 16:06:32 +0200 Subject: [PATCH] For cmake case try to use the newly built .gmo files first. --- src/support/Package.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/support/Package.cpp b/src/support/Package.cpp index 6df43653ff..f6e8c3a8a5 100644 --- a/src/support/Package.cpp +++ b/src/support/Package.cpp @@ -193,7 +193,9 @@ void Package::set_temp_dir(FileName const & temp_dir) const FileName Package::messages_file(string const & c) const { if (in_build_dir_) { - FileName res = FileName(lyx_dir().absFileName() + "/../po/" + c + ".gmo"); + FileName res = FileName(lyx_dir().absFileName() + "/po/" + c + ".gmo"); + if (!res.isReadableFile()) + res = FileName(top_srcdir().absFileName() + "../po/" + c + ".gmo"); if (!res.isReadableFile()) res = FileName(top_srcdir().absFileName() + "/po/" + c + ".gmo"); return res;