Commit ffa10ddf authored by Oliver Horst's avatar Oliver Horst
Browse files

[chg] Ensure the generation of correct CMake variables in site-file

parent 44e26a5a
......@@ -36,7 +36,11 @@ python do_populate_site_file () {
f = open(filename, mode)
for var, val in app_build_params(d):
f.write("set({} \"{}\" CACHE STRING \"Build parameter of the application {} automatically set according to the deployment configuration.\")".format(var, val, d.getVar('PN')) + '\n')
# Ensure that we generate correct CMake variable names only
_var = re.sub(r"[^a-zA-Z0-9_]", "_", var)
# Write everything to the site-file
f.write("set({} \"{}\" CACHE STRING \"Build parameter of the application {} automatically set according to the deployment configuration.\")".format(_var, val, d.getVar('PN')) + '\n')
f.close()
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment