Cmake build: Install subscript.sty only for WIN32 (using MikTeX)

This commit is contained in:
Kornel Benko 2017-11-05 17:06:38 +01:00
parent 1391e3189a
commit 6011d6cdca

View File

@ -69,6 +69,10 @@ macro(lyx_install _what _parent_src_dir _gl_dir _file_type)
list(REMOVE_ITEM files_list "${_current_dir}/lyx.svg") list(REMOVE_ITEM files_list "${_current_dir}/lyx.svg")
list(REMOVE_ITEM files_list "${_current_dir}/Makefile.am") list(REMOVE_ITEM files_list "${_current_dir}/Makefile.am")
list(REMOVE_ITEM files_list "${_current_dir}/layouttranslations") list(REMOVE_ITEM files_list "${_current_dir}/layouttranslations")
if (NOT WIN32)
# subscript.sty is installed only for MikTeX since it is part of texlive
list(REMOVE_ITEM files_list "${_current_dir}/subscript.sty")
endif()
GET_FILENAME_COMPONENT(_base_dir ${_current_dir} NAME) GET_FILENAME_COMPONENT(_base_dir ${_current_dir} NAME)
if(_glob_dir STREQUAL ".") if(_glob_dir STREQUAL ".")
set(_base_dir .) set(_base_dir .)