]> git.lyx.org Git - features.git/commitdiff
Make it buildable on linux again. (LYX_DATA_SUBDIR is on non-windows defined as '').
authorKornel Benko <kornel@lyx.org>
Sat, 23 Apr 2011 14:15:32 +0000 (14:15 +0000)
committerKornel Benko <kornel@lyx.org>
Sat, 23 Apr 2011 14:15:32 +0000 (14:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38483 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/po/CMakeLists.txt

index 79e9765d12be6a8b22b4b290be3cea5b24642ba3..9e9cc16866cf597d03317d7daf2c2421f76a29a0 100755 (executable)
@@ -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}"