From e40f126b7e919cf50b0d8ad095d431cbf3e432ab Mon Sep 17 00:00:00 2001 From: foxandfeature Date: Sat, 31 Jan 2026 19:05:35 +0100 Subject: [PATCH 1/2] Fix passing multiple XML doc sources to generate_doc_source --- cmake/GodotCPPModule.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GodotCPPModule.cmake b/cmake/GodotCPPModule.cmake index 67fc4dcee..44b66a203 100644 --- a/cmake/GodotCPPModule.cmake +++ b/cmake/GodotCPPModule.cmake @@ -166,7 +166,7 @@ function(target_doc_sources TARGET SOURCES) # Create the file generation target, this won't be triggered unless a target # that depends on DOC_SOURCE_FILE is built - generate_doc_source( "${DOC_SOURCE_FILE}" ${SOURCES} ) + generate_doc_source( "${DOC_SOURCE_FILE}" "${SOURCES}" ) # Add DOC_SOURCE_FILE as a dependency to TARGET target_sources(${TARGET} PRIVATE "${DOC_SOURCE_FILE}") From 133371c5361fa1705493412023825f64f2f49c97 Mon Sep 17 00:00:00 2001 From: foxandfeature Date: Fri, 6 Feb 2026 17:56:33 +0100 Subject: [PATCH 2/2] Fix missing quotes when passing XML doc sources in test CMake --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ebbcbb7b4..239d28f59 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -19,7 +19,7 @@ target_sources( # conditionally add doc data to compile output if(GODOTCPP_TARGET MATCHES "editor|template_debug") file(GLOB_RECURSE DOC_XML LIST_DIRECTORIES NO CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/doc_classes/*.xml") - target_doc_sources( ${TARGET_NAME} ${DOC_XML} ) + target_doc_sources( ${TARGET_NAME} "${DOC_XML}" ) endif() set(OUTPUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/project/bin/")