From 7653bd17575d88545969e5d127c74fa7ca86498f Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Sat, 20 Nov 2021 18:04:33 -0500 Subject: [PATCH] cmake fix NuttX config import for 0 values --- platforms/nuttx/cmake/init.cmake | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/platforms/nuttx/cmake/init.cmake b/platforms/nuttx/cmake/init.cmake index f1d78db450..9245ed90f9 100644 --- a/platforms/nuttx/cmake/init.cmake +++ b/platforms/nuttx/cmake/init.cmake @@ -96,13 +96,11 @@ foreach(NameAndValue ${ConfigContents}) # Find the value string(REPLACE "${Name}=" "" Value ${NameAndValue}) - if(Value) - # remove extra quotes - string(REPLACE "\"" "" Value ${Value}) + # remove extra quotes + string(REPLACE "\"" "" Value ${Value}) - # Set the variable - #message(STATUS "${Name} ${Value}") - set(${Name} ${Value} CACHE INTERNAL "NUTTX DEFCONFIG: ${Name}" FORCE) - endif() + # Set the variable + #message(STATUS "${Name} ${Value}") + set(${Name} ${Value} CACHE INTERNAL "NUTTX DEFCONFIG: ${Name}" FORCE) endif() endforeach()