From 3f790725d9fdf6f6266534cb8bc98b54cc164129 Mon Sep 17 00:00:00 2001 From: Patrick de Visschere Date: Wed, 20 Mar 2024 11:44:22 +0100 Subject: [PATCH] Using the latest commit and building lyx with cmake on macos-sonoma with xcode fails with multiple error messages like this one: ---------- CMake Error in po/CMakeLists.txt: The custom command generating /po/LyX2.4.cat.pot is attached to multiple targets: translations update-gmo but none of these is a common dependency of the other(s). This is not allowed by the Xcode "new build system". --- po/CMakeLists.txt | 2 ++ src/tex2lyx/test/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 065448e6e5..8b3cbf37ee 100755 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -271,4 +271,6 @@ ADD_CUSTOM_TARGET(update-gmo DEPENDS ${LYX_UPDATED_GMO_FILES}) ADD_CUSTOM_TARGET(update-po DEPENDS ${LYX_UPDATED_PO_FILES} ${LYX_UPDATED_GMO_FILES}) set_target_properties(update-po update-gmo PROPERTIES FOLDER "i18n") add_dependencies(update-po translations) +add_dependencies(update-gmo translations) +add_dependencies(update-gmo update-po) diff --git a/src/tex2lyx/test/CMakeLists.txt b/src/tex2lyx/test/CMakeLists.txt index e620e067c4..61b4115e02 100644 --- a/src/tex2lyx/test/CMakeLists.txt +++ b/src/tex2lyx/test/CMakeLists.txt @@ -103,5 +103,5 @@ add_custom_command( DEPENDS Tex2lyxFilesUpdated ) -add_custom_target(cleanupdatetex2lyxtests DEPENDS UpdateFilesRemoved) +add_custom_target(cleanupdatetex2lyxtests DEPENDS UpdateFilesRemoved updatetex2lyxtests) set_target_properties(cleanupdatetex2lyxtests PROPERTIES FOLDER "tests/tex2lyx")