mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
Cmake build: Omit "PRE_BUILD" in add_custom_command()
According to cmake warning output while configuring:
CMake Error (dev) at po/CMakeLists.txt:72 (ADD_CUSTOM_COMMAND):
The following keywords are not supported when using
add_custom_command(OUTPUT): PRE_BUILD.
Policy CMP0175 is not set: add_custom_command() rejects invalid arguments.
Run "cmake --help-policy CMP0175" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
Call Stack (most recent call first):
po/CMakeLists.txt:106 (add_gettext_python)
This error is for project developers. Use -Wno-error=dev to suppress it.
(cherry picked from commit 13f275d0aa
)
This commit is contained in:
parent
897fa08919
commit
3ca5425f94
@ -49,7 +49,6 @@ macro(add_gettext_python _par _dir)
|
|||||||
endif()
|
endif()
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT "${_dst}"
|
OUTPUT "${_dst}"
|
||||||
PRE_BUILD
|
|
||||||
COMMAND ${CMAKE_COMMAND}
|
COMMAND ${CMAKE_COMMAND}
|
||||||
"-DTOP_SRC_DIR=${TOP_SRC_DIR}"
|
"-DTOP_SRC_DIR=${TOP_SRC_DIR}"
|
||||||
"-DDestFile=${_dst}"
|
"-DDestFile=${_dst}"
|
||||||
@ -71,7 +70,6 @@ macro(add_gettext_python _par _dir)
|
|||||||
else()
|
else()
|
||||||
ADD_CUSTOM_COMMAND(
|
ADD_CUSTOM_COMMAND(
|
||||||
OUTPUT "${_dst}"
|
OUTPUT "${_dst}"
|
||||||
PRE_BUILD
|
|
||||||
COMMAND ${LYX_PYTHON_EXECUTABLE}
|
COMMAND ${LYX_PYTHON_EXECUTABLE}
|
||||||
ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}"
|
ARGS "${TOP_SRC_DIR}/po/lyx_pot.py" -b "${TOP_SRC_DIR}" -o "${_dst}" -t ${_par1} "--src_file=${_src_files}"
|
||||||
DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py"
|
DEPENDS ${_sources} ${_src_files} "${TOP_SRC_DIR}/po/lyx_pot.py"
|
||||||
|
Loading…
Reference in New Issue
Block a user