Skip to content

Commit ce187a2

Browse files
authored
Merge pull request nasa#907 from jphickey/fix-906-cmake-system
Fix nasa#906, Update variable checks in read_targetconfig
2 parents e01d421 + 8a8ac31 commit ce187a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/global_functions.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ function(read_targetconfig)
185185
endwhile()
186186

187187
foreach(CPUNAME ${MISSION_CPUNAMES})
188-
if (DEFINED SIMULATION)
188+
if (SIMULATION)
189189
# if simulation use simulation system architecture for all targets
190190
set(TOOLCHAIN_NAME "${SIMULATION}")
191-
elseif (DEFINED ${CPUNAME}_SYSTEM)
191+
elseif (${CPUNAME}_SYSTEM)
192192
# get the target system arch identifier string
193193
set(TOOLCHAIN_NAME "${${CPUNAME}_SYSTEM}")
194194
else()

0 commit comments

Comments
 (0)