File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,6 @@ else()
124124endif ()
125125endif ()
126126
127- if  (GODOT_ENABLE_HOT_RELOAD)
128-  set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS}  -D HOT_RELOAD_ENABLED" )
129- endif ()
130- 
131127# Generate source from the bindings file 
132128find_package (Python3 3.4 REQUIRED) # pathlib should be present 
133129if (GENERATE_TEMPLATE_GET_NODE)
@@ -170,6 +166,11 @@ target_compile_features(${PROJECT_NAME}
170166cxx_std_17
171167)
172168
169+ if (GODOT_ENABLE_HOT_RELOAD)
170+ target_compile_definitions (${PROJECT_NAME}  PUBLIC  HOT_RELOAD_ENABLED)
171+ target_compile_options (${PROJECT_NAME}  PUBLIC  $<${compiler_is_gnu} :-fno-gnu-unique>)
172+ endif ()
173+ 
173174target_compile_definitions (${PROJECT_NAME}  PUBLIC 
174175$<$<CONFIG:Debug>:
175176DEBUG_ENABLED
                         You can’t perform that action at this time. 
           
                  
0 commit comments