commit f1afe437517d0d3d86856d500e2b5b9cb0ed2f9b
Author: Kornel Benko <[email protected]>
Date:   Thu Jan 1 12:49:31 2026 +0100

    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.
    
    Thanks to Patrick to unleash the problem with XCode.
    
    (cherry picked from commit dd65eb587321062e62441437312a60eaf2311a11)
---
 development/cmake/doc/CMakeLists.txt | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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
@@ -62,12 +62,10 @@ 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")
 
-- 
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to