From d03d3e24618beb7696134f067d6dbf9c4afa3160 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sat, 23 Apr 2011 14:15:32 +0000 Subject: [PATCH] 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 --- development/cmake/po/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/development/cmake/po/CMakeLists.txt b/development/cmake/po/CMakeLists.txt index 79e9765d12..9e9cc16866 100755 --- a/development/cmake/po/CMakeLists.txt +++ b/development/cmake/po/CMakeLists.txt @@ -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}") - install(FILES "${TOP_SRC_DIR}/lib/layouttranslations" DESTINATION ${LYX_DATA_SUBDIR}) + 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}" -- 2.39.2