Skip to content

Commit 55a86ba

Browse files
authored
Merge pull request #1918 from foxandfeature/multiple-XML-doc-sources
Fix passing multiple XML doc sources to generate_doc_source
2 parents 9ba2fbe + 43b4f26 commit 55a86ba

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cmake/GodotCPPModule.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function(target_doc_sources TARGET SOURCES)
168168

169169
# Create the file generation target, this won't be triggered unless a target
170170
# that depends on DOC_SOURCE_FILE is built
171-
generate_doc_source( "${DOC_SOURCE_FILE}" ${SOURCES} )
171+
generate_doc_source( "${DOC_SOURCE_FILE}" "${SOURCES}" )
172172

173173
# Add DOC_SOURCE_FILE as a dependency to TARGET
174174
target_sources(${TARGET} PRIVATE "${DOC_SOURCE_FILE}")

test/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ target_sources(
1919
# conditionally add doc data to compile output
2020
if(GODOTCPP_TARGET MATCHES "editor|template_debug")
2121
file(GLOB_RECURSE DOC_XML LIST_DIRECTORIES NO CONFIGURE_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/doc_classes/*.xml")
22-
target_doc_sources( ${TARGET_NAME} ${DOC_XML} )
22+
target_doc_sources( ${TARGET_NAME} "${DOC_XML}" )
2323
endif()
2424

2525
set(OUTPUT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/project/bin/")

0 commit comments

Comments
 (0)