From 9685147a16768abb8a651c554b7425d5b8e3d82e Mon Sep 17 00:00:00 2001 From: Samuel Nicholas Date: Sun, 29 Dec 2024 10:45:28 +1030 Subject: [PATCH] Simplify SYSTEM_NAME generator expression. previous version created a list, which is semicolon delimited and then string REPLACED the semicolon to create a single string. New version uses string APPEND to create the string the first time. --- cmake/godotcpp.cmake | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/cmake/godotcpp.cmake b/cmake/godotcpp.cmake index 49480699..74ce940e 100644 --- a/cmake/godotcpp.cmake +++ b/cmake/godotcpp.cmake @@ -240,16 +240,15 @@ function( godotcpp_generate ) ### Platform is derived from the toolchain target # See GeneratorExpressions PLATFORM_ID and CMAKE_SYSTEM_NAME - set( SYSTEM_NAME - $<$:android> - $<$:ios> - $<$:linux> - $<$:macos> - $<$:web> - $<$:windows> - $<$:windows> + string( APPEND SYSTEM_NAME + "$<$:android.${ANDROID_ABI}>" + "$<$:ios>" + "$<$:linux>" + "$<$:macos>" + "$<$:web>" + "$<$:windows>" + "$<$:windows>" ) - string(REPLACE ";" "" SYSTEM_NAME "${SYSTEM_NAME}") ### Use the arch from the toolchain if it isn't set manually if( GODOT_ARCH )