Check for python before updating po-files

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34827 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Kornel Benko 2010-07-09 16:11:44 +00:00
parent 5577e877bb
commit 9fc93b0190
2 changed files with 3 additions and 5 deletions

View File

@ -427,9 +427,9 @@ if(MSVC)
endif()
FIND_PROGRAM(_PERL_EXECUTABLE perl)
if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND")
FIND_PROGRAM(_PYTHON_EXECUTABLE python)
if((NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND") AND ( NOT ${_PYTHON_EXECUTABLE} MATCHES "-NOTFOUND"))
if(LYX_NLS)
find_package(LyXGettext REQUIRED)
include_directories(${TOP_SRC_DIR}/po)
@ -437,8 +437,6 @@ if(NOT ${_PERL_EXECUTABLE} MATCHES "-NOTFOUND")
endif()
endif()
if(LYX_DEBUG_GLIBC)
set(_GLIBCXX_DEBUG 1)
endif()

View File

@ -38,7 +38,7 @@ macro(add_gettext_python _par _dir)
ADD_CUSTOM_COMMAND(
OUTPUT "${_dst}"
PRE_BUILD
COMMAND python
COMMAND ${_PYTHON_EXECUTABLE}
ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}"
DEPENDS ${_sources} ${_src_files}
)