Am Wed, 31 Dec 2025 16:11:41 +0100
schrieb pdv <[email protected]>:

> On 31/12/2025 12:31, Kornel Benko wrote:
> > Am Wed, 31 Dec 2025 12:06:44 +0100
> > schrieb pdv <[email protected]>:
> >   
> >> Obviously my problem is caused by LYX_INSTALL not being set.
> >> When I set it on the configure is OK but when generating I get the error
> >> message
> >>
> >> The custom command generating
> >>
> >>       .../lyx-qt6-cmake-xcode-build/doc/LFUNs.lyx
> >>
> >>     is attached to multiple targets:
> >>
> >>       doc
> >>       lfundoc
> >>
> >>     but none of these is a common dependency of the other(s).  This is not
> >>     allowed by the Xcode "new build system".
> >>
> >> I didn't mention I used XCode I'm afraid (version 16.4).
> >>
> >> pdv  
> > 
> > OK, try the attached. No problems on Linux.
> > 
> >     Kornel
> > 
> >   
> 
> The patch didn't help.
> 
> CMake Error in development/cmake/doc/CMakeLists.txt:
>    The custom command generating
> 
>      /Users/pdv/Developer/public/lyx-qt6-cmake-xcode-build/doc/LFUNs.lyx
> 
>    is attached to multiple targets:
> 
>      doc
>      lfundoc
> 
>    but none of these is a common dependency of the other(s).  This is not
>    allowed by the Xcode "new build system".
> 

OK, so wrong function suspected.

Please try attached. (Diff is against master)

        Kornel
diff --git a/development/cmake/doc/CMakeLists.txt b/development/cmake/doc/CMakeLists.txt
index 575dee2a8a..c99298927f 100644
--- a/development/cmake/doc/CMakeLists.txt
+++ b/development/cmake/doc/CMakeLists.txt
@@ -60,14 +60,15 @@ endforeach(_rel_doc)
 # Special commands to create and install LFUNs.lyx
 add_custom_command(
   OUTPUT LFUNs.lyx
   COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/development/tools/gen_lfuns.py" "${TOP_SRC_DIR}/src/LyXAction.cpp" > LFUNs.lyx
   DEPENDS "${TOP_SRC_DIR}/development/tools/gen_lfuns.py" "${TOP_SRC_DIR}/src/LyXAction.cpp")
-LIST(APPEND _docs "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx")
-install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx" DESTINATION "${LYX_DATA_SUBDIR}doc")
 
 ADD_CUSTOM_TARGET(doc ALL DEPENDS ${_docs})
 
+LIST(APPEND _docs "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx")
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx" DESTINATION "${LYX_DATA_SUBDIR}doc")
+
 ADD_CUSTOM_TARGET(lfundoc DEPENDS LFUNs.lyx)
 
 set_target_properties(doc lfundoc PROPERTIES FOLDER "doc")
 

Attachment: pgpprpLsuKo9U.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to