Skip to content

Commit

Permalink
Dont put LF_FILE_SEPARATOR in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Jan 24, 2025
1 parent 0a7a3d5 commit 436ca39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ public static void generateCMakeInclude(
"add_compile_definitions(LF_PACKAGE_DIRECTORY=\"" + fileConfig.srcPkgPath + "\")");
cmakeIncludeCode.pr(
"add_compile_definitions(LF_SOURCE_GEN_DIRECTORY=\"" + fileConfig.getSrcGenPath() + "\")");
cmakeIncludeCode.pr("add_compile_definitions(LF_FILE_SEPARATOR=\"" + File.separator + "\")");
try (var srcWriter = Files.newBufferedWriter(cmakeIncludePath)) {
srcWriter.write(cmakeIncludeCode.getCode());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ CodeBuilder generateCMakeCode(
}
cMakeCode.pr("set(" + key + " " + v + " CACHE STRING \"\")\n");
});
// Set default values for various build paths
cMakeCode.pr("set(LF_FILE_SEPARATOR=\"" + File.separator + "\" CACHE STRING \"\")");
// Add trace-plugin data
var tracePlugin = targetConfig.getOrDefault(TracePluginProperty.INSTANCE);
System.out.println(tracePlugin);
Expand Down

0 comments on commit 436ca39

Please sign in to comment.