platforms/nuttx: init.cmake skip config lines with empty values

This commit is contained in:
Daniel Agar
2020-07-06 10:26:46 -04:00
parent b277840233
commit 0f0706be91
+2
View File
@@ -157,6 +157,7 @@ foreach(NameAndValue ${ConfigContents})
# Find the value # Find the value
string(REPLACE "${Name}=" "" Value ${NameAndValue}) string(REPLACE "${Name}=" "" Value ${NameAndValue})
if(Value)
# remove extra quotes # remove extra quotes
string(REPLACE "\"" "" Value ${Value}) string(REPLACE "\"" "" Value ${Value})
@@ -164,4 +165,5 @@ foreach(NameAndValue ${ConfigContents})
#message(STATUS "${Name} ${Value}") #message(STATUS "${Name} ${Value}")
set(${Name} ${Value} CACHE INTERNAL "NUTTX DEFCONFIG: ${Name}" FORCE) set(${Name} ${Value} CACHE INTERNAL "NUTTX DEFCONFIG: ${Name}" FORCE)
endif() endif()
endif()
endforeach() endforeach()