We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b98377 commit 0557197Copy full SHA for 0557197
CMakeLists.txt
@@ -124,10 +124,6 @@ else()
124
endif()
125
126
127
-if (GODOT_ENABLE_HOT_RELOAD)
128
- set(GODOT_COMPILE_FLAGS "${GODOT_COMPILE_FLAGS} -D HOT_RELOAD_ENABLED")
129
-endif()
130
-
131
# Generate source from the bindings file
132
find_package(Python3 3.4 REQUIRED) # pathlib should be present
133
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)
+ target_compile_definitions(${PROJECT_NAME} PUBLIC HOT_RELOAD_ENABLED)
+ target_compile_options(${PROJECT_NAME} PUBLIC $<${compiler_is_gnu}:-fno-gnu-unique>)
+endif()
173
+
174
target_compile_definitions(${PROJECT_NAME} PUBLIC
175
$<$<CONFIG:Debug>:
176
DEBUG_ENABLED
0 commit comments