1
0
Fork 0

Fix a warning about using uninitialized variable

This commit is contained in:
Ilya Fedin 2022-08-11 10:22:31 +04:00 committed by John Preston
parent 50a67393ab
commit 1a24c441a8

View file

@ -54,7 +54,9 @@ endfunction()
# This code is not supposed to run on build machine, only on target machine.
function(init_non_host_target target_name)
init_target(${target_name})
set_target_properties(${target_name} PROPERTIES
OSX_ARCHITECTURES "${DESKTOP_APP_MAC_ARCH}"
)
if (APPLE)
set_target_properties(${target_name} PROPERTIES
OSX_ARCHITECTURES "${DESKTOP_APP_MAC_ARCH}"
)
endif()
endfunction()