Make it buildable on linux again. (LYX_DATA_SUBDIR is on non-windows defined as '').

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38483 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2011-04-23 14:15:32 +00:00
parent da070e9a7f
commit d03d3e2461

View File

@ -51,7 +51,11 @@ macro(add_gettext_python _par _dir)
COMMENT "${LYX_PYTHON_EXECUTABLE} ${TOP_SRC_DIR}/po/lyx_pot.py -b ${TOP_SRC_DIR} -o ${_dst} -t ${_par1} --src_file=${_src_files}"
)
ADD_CUSTOM_TARGET(layouttranslations1 DEPENDS "${_dst}")
if (LYX_DATA_SUBDIR STREQUAL "")
install(FILES "${TOP_SRC_DIR}/lib/layouttranslations" DESTINATION .)
else()
install(FILES "${TOP_SRC_DIR}/lib/layouttranslations" DESTINATION ${LYX_DATA_SUBDIR})
endif()
else()
ADD_CUSTOM_COMMAND(
OUTPUT "${_dst}"