Skip to content

Commit

Permalink
Merge pull request godotengine#1709 from enetheru/MinGWMakefiles
Browse files Browse the repository at this point in the history
CMake: Create destination folder for doc_source.cpp generation
  • Loading branch information
dsnopek authored Feb 17, 2025
2 parents 79f9bc9 + 23c2407 commit 5eb6e6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/GodotCPPModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ function( generate_doc_source OUTPUT_PATH SOURCES )
list( TRANSFORM PYTHON_LIST REPLACE "(.*\.xml)" "'\\1'" )
list( JOIN PYTHON_LIST "," PYTHON_LIST )

get_filename_component(OUTPUT_DIR "${OUTPUT_PATH}" DIRECTORY)
file(MAKE_DIRECTORY ${OUTPUT_DIR} )

# Python one-liner to run our command
# lists in CMake are just strings delimited by ';', so this works.
set( PYTHON_SCRIPT "from doc_source_generator import generate_doc_source"
Expand Down

0 comments on commit 5eb6e6b

Please sign in to comment.