Skip to content

Commit

Permalink
Merge pull request #907 from jphickey/fix-906-cmake-system
Browse files Browse the repository at this point in the history
Fix #906, Update variable checks in read_targetconfig
  • Loading branch information
yammajamma authored Sep 24, 2020
2 parents e01d421 + 8a8ac31 commit ce187a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/global_functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ function(read_targetconfig)
endwhile()

foreach(CPUNAME ${MISSION_CPUNAMES})
if (DEFINED SIMULATION)
if (SIMULATION)
# if simulation use simulation system architecture for all targets
set(TOOLCHAIN_NAME "${SIMULATION}")
elseif (DEFINED ${CPUNAME}_SYSTEM)
elseif (${CPUNAME}_SYSTEM)
# get the target system arch identifier string
set(TOOLCHAIN_NAME "${${CPUNAME}_SYSTEM}")
else()
Expand Down

0 comments on commit ce187a2

Please sign in to comment.