Skip to content

Commit

Permalink
Add default values for the LF_SOURCE_DIRECTORY etc in the generated C…
Browse files Browse the repository at this point in the history
…MakeLists.txt
  • Loading branch information
erlingrj committed Jan 22, 2025
1 parent a6572dc commit 1062324
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,14 @@ CodeBuilder generateCMakeCode(
}
cMakeCode.pr("set(" + key + " " + v + " CACHE STRING \"\")\n");
});
// Set default values for various build paths
cMakeCode.pr(
"set(LF_SOURCE_DIRECTORY \"" + fileConfig.srcPath + "\" CACHE STRING \"\")");
cMakeCode.pr(
"set(LF_PACKAGE_DIRECTORY \"" + fileConfig.srcPkgPath + "\" CACHE STRING \"\")");
cMakeCode.pr(
"set(LF_SOURCE_GEN_DIRECTORY \"" + fileConfig.getSrcGenPath() + "\" CACHE STRING \"\")");

// Add trace-plugin data
var tracePlugin = targetConfig.getOrDefault(TracePluginProperty.INSTANCE);
System.out.println(tracePlugin);
Expand Down

0 comments on commit 1062324

Please sign in to comment.