]> git.lyx.org Git - features.git/commitdiff
Using the latest commit and building lyx with cmake on macos-sonoma with
authorPatrick de Visschere <pdvisschere@edpnet.be>
Wed, 20 Mar 2024 10:44:22 +0000 (11:44 +0100)
committerKornel Benko <kornel@lyx.org>
Wed, 20 Mar 2024 10:44:22 +0000 (11:44 +0100)
xcode fails with multiple error messages like this one:

----------
CMake Error in po/CMakeLists.txt:
       The custom command generating

     <build-directory>/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
src/tex2lyx/test/CMakeLists.txt

index 065448e6e542828608d1288cbe9e409cef884af0..8b3cbf37ee263c14c5066e30fb54df65d7508a20 100755 (executable)
@@ -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)
 
index e620e067c4bef34364e06cef0e0f7eb2224a5ab1..61b4115e02c1bf6e39e76c805fa0dbe7cec9e8fc 100644 (file)
@@ -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")