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()
124
124
endif ()
125
125
endif ()
126
126
127
- if (GODOT_ENABLE_HOT_RELOAD )
128
- set (GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -D HOT_RELOAD_ENABLED" )
129
- endif ()
130
-
131
127
# Generate source from the bindings file
132
128
find_package (Python3 3.4 REQUIRED ) # pathlib should be present
133
129
if (GENERATE_TEMPLATE_GET_NODE )
@@ -170,6 +166,11 @@ target_compile_features(${PROJECT_NAME}
170
166
cxx_std_17
171
167
)
172
168
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
+
173
174
target_compile_definitions (${PROJECT_NAME} PUBLIC
174
175
$< $< CONFIG:Debug> :
175
176
DEBUG_ENABLED
You can’t perform that action at this time.
0 commit comments