All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ccmake.bbclass: Fix up un-escaped quotes in output formatting
@ 2019-04-11  4:03 Nathan Rossi
  0 siblings, 0 replies; only message in thread
From: Nathan Rossi @ 2019-04-11  4:03 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
---
 meta/classes/ccmake.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/ccmake.bbclass b/meta/classes/ccmake.bbclass
index 4114daa61b..df5134a108 100644
--- a/meta/classes/ccmake.bbclass
+++ b/meta/classes/ccmake.bbclass
@@ -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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-11  4:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-11  4:03 [PATCH] ccmake.bbclass: Fix up un-escaped quotes in output formatting Nathan Rossi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.