Making the src-gen folder more stand-alone #1677
Labels
build system
compiler
enhancement
Enhancement of existing feature
good first issue
Good for newcomers
The src-gen folder currently generated by lfc does not quite contain enough information to build the generated C code. To reproduce:
This fails with
In order to get the program to build, you have issue the following incantation:
@erlingrj suggested that a simple solution would be to write the default/provided target properties to both
CMakeLists.txt
andCompileDefinitions.txt
. We can put the variables behind statements like this:This way we get (1) plug-and-play integration with cmake, (2) easy to extend to other build system because the info is also readily available in CompileDefinitions.txt and (3) change target properties without rebuilding by changing passing arguments to cmake.
The text was updated successfully, but these errors were encountered: