mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
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:
parent
5577e877bb
commit
9fc93b0190
@ -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()
|
||||
|
@ -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}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user