Skip to content

Commit

Permalink
Fix a warning about using uninitialized variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Aug 11, 2022
1 parent 50a6739 commit 1a24c44
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions init_target.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1a24c44

Please sign in to comment.