Skip to content

Commit 5f9cc1e

Browse files
committed
Create the godot-cpp/gen/include directory at configure time so IDEs can see generated headers immediately after generate_bindings target produces them
1 parent c5d45ad commit 5f9cc1e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ if(NOT EXISTS "${CMAKE_CURRENT_LIST_DIR}/godot-cpp/src")
2626
endif()
2727
add_subdirectory(godot-cpp SYSTEM)
2828

29+
# Create the gen directory at configure time so IDEs can see generated headers immediately after generate_bindings
30+
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/godot-cpp/gen/include")
31+
2932
# Add godot-cpp's module path and include the exported functions.
3033
# This is made available for documentation generation
3134
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${godot-cpp_SOURCE_DIR}/cmake")

0 commit comments

Comments
 (0)