]> git.lyx.org Git - lyx.git/commit
Cmake build: Omit "PRE_BUILD" in add_custom_command()
authorKornel Benko <kornel@lyx.org>
Sat, 21 Sep 2024 19:52:21 +0000 (21:52 +0200)
committerKornel Benko <kornel@lyx.org>
Sat, 21 Sep 2024 19:52:21 +0000 (21:52 +0200)
commit13f275d0aa5ef23dcad53b3b98758e601a91b3da
tree752bf77764aca3e49d6f6c0cffd3f280c69637c3
parent6e05409d135581d75ecc5bf15b8336ebdd98d6f2
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.
po/CMakeLists.txt