Skip to content

Commit 9ce7a71

Browse files
committed
CMake: Fix godotengine#1690 - DEBUG_FEATURES generator expression
As described in issue godotengine#1690 the expression needs to depend on TARGET_ALIAS not TARGET_NAME. This was introduced when I was solving the naming conflict issues and I missed this usage.
1 parent 13cd2d9 commit 9ce7a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/godotcpp.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ function( godotcpp_generate )
280280
set( TARGET_NAME "godot-cpp.${TARGET_ALIAS}" )
281281

282282
# Generator Expressions that rely on the target
283-
set( DEBUG_FEATURES "$<NOT:$<STREQUAL:${TARGET_NAME},template_release>>" )
283+
set( DEBUG_FEATURES "$<NOT:$<STREQUAL:${TARGET_ALIAS},template_release>>" )
284284
set( HOT_RELOAD "$<IF:${HOT_RELOAD-UNSET},${DEBUG_FEATURES},$<BOOL:${GODOT_USE_HOT_RELOAD}>>" )
285285

286286
# the godot-cpp.* library targets

0 commit comments

Comments
 (0)