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.

(From OE-Core rev: a19a6201c8cc255583bd014534b4a6ec2524070f)

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Nathan Rossi 2019-04-11 04:03:52 +00:00 committed by Richard Purdie
parent bf45a3e222
commit 97f37fbda1

View File

@ -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