summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2019-04-11 04:03:52 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-04-11 21:19:27 +0100
commita19a6201c8cc255583bd014534b4a6ec2524070f (patch)
tree89e6f9473e1a52011a38cbbb8d90a826a0eb564c
parent72aace12a499db8d1340c8705b177e6f191d853d (diff)
downloadopenembedded-core-a19a6201c8cc255583bd014534b4a6ec2524070f.tar.gz
openembedded-core-a19a6201c8cc255583bd014534b4a6ec2524070f.tar.bz2
openembedded-core-a19a6201c8cc255583bd014534b4a6ec2524070f.zip
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. Signed-off-by: Nathan Rossi <nathan@nathanrossi.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/ccmake.bbclass2
1 files changed, 1 insertions, 1 deletions
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