From 9ae5fc475a082951971d6fcf6768694dc9b2e1ad 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 4dce5dadd..353978a7e 100644 --- a/cmake/GodotCPPModule.cmake +++ b/cmake/GodotCPPModule.cmake @@ -168,7 +168,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 43b4f263530af37b3338db5f4bb6554c45c2871a 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/")