Skip to content

Commit

Permalink
Merge pull request #1622 from lf-lang/cmake-cleanup
Browse files Browse the repository at this point in the history
Do not hardcode compile definitions in generated CMakeLists.txt
  • Loading branch information
petervdonovan authored Mar 12, 2023
2 parents f90dd16 + 17dc4ab commit b0e3a70
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions org.lflang/src/org/lflang/generator/c/CCmakeGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,6 @@ CodeBuilder generateCMakeCode(
if (targetConfig.platformOptions.platform != Platform.AUTO) {
cMakeCode.pr("set(CMAKE_SYSTEM_NAME "+targetConfig.platformOptions.platform.getcMakeName()+")");
}

cMakeCode.pr("# Target definitions\n");
targetConfig.compileDefinitions.forEach((key, value) -> cMakeCode.pr(
"add_compile_definitions("+key+"="+value+")\n"
));
cMakeCode.newLine();

if (targetConfig.platformOptions.platform == Platform.ZEPHYR) {
Expand Down

0 comments on commit b0e3a70

Please sign in to comment.