Am Wed, 31 Dec 2025 17:38:07 +0100
schrieb Kornel Benko <[email protected]>:

> > The XCode install build fails because LFUNs.lyx is missing:
> > 
> > CMake Error at doc/cmake_install.cmake:507 (file):
> >    file INSTALL cannot find
> >    "../lyx-qt6-cmake-xcode-build/doc/LFUNs.lyx": No
> >    such file or directory.
> > 
> > The other .lyx files are present.
> > Does this make sense? Maybe I should start a clean build?  
> 
> Yes, it makes sense. I will look into it. Thanks for testing.
> 
>       Kornel
> 

OK, I try to please XCode and at the same time having also the target lfundoc.
(That is the command 'make lfundoc' creates the LFUNs.lyx it the doc dir)
Now the target 'doc' does not depend of LFUNs.lyx, but instead of target 
lfundoc.
If this does not work, we have to make exception for Apple (dismiss the 
independent target
lfundoc)

        Kornel
diff --git a/development/cmake/doc/CMakeLists.txt b/development/cmake/doc/CMakeLists.txt
index 575dee2a8a..ee0f92df1a 100644
--- a/development/cmake/doc/CMakeLists.txt
+++ b/development/cmake/doc/CMakeLists.txt
@@ -60,14 +60,12 @@ 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})
 
 ADD_CUSTOM_TARGET(lfundoc DEPENDS LFUNs.lyx)
+ADD_CUSTOM_TARGET(doc ALL DEPENDS ${_docs} lfundoc)
+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx" DESTINATION "${LYX_DATA_SUBDIR}doc")
 
 set_target_properties(doc lfundoc PROPERTIES FOLDER "doc")
 

Attachment: pgpAi2AMrjIZ_.pgp
Description: Digitale Signatur von OpenPGP

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

Reply via email to