Cmake build: Install lyx-provided fonts to where GuiFontLoader.cpp expects them

This commit is contained in:
Kornel Benko 2017-07-10 13:17:29 +02:00
parent 56f11bf5fd
commit e23e65a973
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ endif()
# Here we try to exclude files which we do not want to install
# Depending on _what, installation on UNIX goes to
# data -> ${LYX_DATA_SUBDIR}
# font -> share/fonts/truetype/${_lyx}/
# font -> share/${_lyx}/fonts/
# bin -> bin
# tex -> share/texmf/tex/latex/${_lyx}/
macro(lyx_install _what _parent_src_dir _gl_dir _file_type)

View File

@ -68,7 +68,7 @@ function(get_font_destination _result)
set(_dir "${LYX_DATA_SUBDIR}fonts/")
elseif(UNIX)
# at least on ubuntu
set(_dir "share/fonts/truetype/${_lyx}/")
set(_dir "share/${_lyx}/fonts/")
else()
message(FATAL_ERROR "Unhandled platform")
endif()