cmake fix NuttX config import for 0 values

This commit is contained in:
Daniel Agar
2021-11-20 18:04:33 -05:00
parent 7a1a4ea7a6
commit 7653bd1757
-2
View File
@@ -96,7 +96,6 @@ 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})
@@ -104,5 +103,4 @@ 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()