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
diff --git a/development/cmake/doc/CMakeLists.txt b/development/cmake/doc/CMakeLists.txt
index 575dee2a8a..2f93f423aa 100644
--- a/development/cmake/doc/CMakeLists.txt
+++ b/development/cmake/doc/CMakeLists.txt
@@ -67,7 +67,9 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx" DESTINATION "${LYX_DATA_SU
 
 ADD_CUSTOM_TARGET(doc ALL DEPENDS ${_docs})
 
 ADD_CUSTOM_TARGET(lfundoc DEPENDS LFUNs.lyx)
 
-set_target_properties(doc lfundoc PROPERTIES FOLDER "doc")
+foreach(_tg doc lfundoc)
+  set_target_properties(${_tg} PROPERTIES FOLDER "doc")
+endforeach()
 

Attachment: pgpFMNOJr9lm0.pgp
Description: Digitale Signatur von OpenPGP

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

Reply via email to