Skip to contentSkip to conversation

ccmake.bbclass: Fix up un-escaped quotes in output formatting

PATCH New Nathan Rossi 1 participant 1 message Apr 11, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ccmake.bbclass: Fix up un-escaped quotes in output formatting

The quotes should be generated in the output to match the expected cmake syntax for setting cache variables.

---
 meta/classes/ccmake.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/ccmake.bbclass +1 -1
index 4114daa61b..df5134a108 100644
@@ -81,7 +81,7 @@ python do_ccmake_diffconfig() {
 
                 with open(d.expand("${WORKDIR}/site-file.cmake"), "w") as f:
                     for k, kt, v in added:
-                        f.write("SET({0} \"{1}\" CACHE {2} "")\n".format(k, v, kt))
+                        f.write("SET({0} \"{1}\" CACHE {2} \"\")\n".format(k, v, kt))
                 bb.plain("Configuration cmake fragment written to: {0}".format(d.expand("${WORKDIR}/site-file.cmake")))
 
                 # restore the original config

---
2.20.1