File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ project(godot-cpp LANGUAGES CXX)
4343option (GENERATE_TEMPLATE_GET_NODE "Generate a template version of the Node class's get_node."  ON )
4444option (GODOT_CPP_SYSTEM_HEADERS "Expose headers as SYSTEM."  ON )
4545option (GODOT_CPP_WARNING_AS_ERROR "Treat warnings as errors"  OFF )
46+ option (GODOT_ENABLE_HOT_RELOAD "Build with hot reload support"  OFF )
4647
4748# Add path to modules 
4849list ( APPEND  CMAKE_MODULE_PATH  "${CMAKE_CURRENT_SOURCE_DIR} /cmake/"  )
@@ -116,6 +117,10 @@ else()
116117endif ()
117118endif ()
118119
120+ if  (GODOT_ENABLE_HOT_RELOAD)
121+  set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS}  -D HOT_RELOAD_ENABLED" )
122+ endif ()
123+ 
119124# Generate source from the bindings file 
120125find_package (Python3 3.4 REQUIRED) # pathlib should be present 
121126if (GENERATE_TEMPLATE_GET_NODE)
                         You can’t perform that action at this time. 
           
                  
0 commit comments