cmake: build system changes

This commit is contained in:
Renz Christian Bagaporo
2019-04-26 13:42:10 +08:00
parent 56078159d4
commit c6dc47b3e2
20 changed files with 1829 additions and 1344 deletions

View File

@@ -173,7 +173,7 @@ def convert_component(project_path, component_path):
else:
f.write("register_config_only_component()\n")
if cflags is not None:
f.write("component_compile_options(%s)\n" % cflags)
f.write("target_compile_options(${COMPONENT_LIB} PRIVATE %s)\n" % cflags)
print("Converted %s" % cmakelists_path)