Skip to content

Commit

Permalink
Merge pull request #2438 from lf-lang/file-separator
Browse files Browse the repository at this point in the history
Define LF_FILE_SEPARATOR in CMake
  • Loading branch information
edwardalee authored Nov 22, 2024
2 parents 4a134ee + 554b34e commit 56635b8
Showing 1 changed file with 1 addition and 0 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

0 comments on commit 56635b8

Please sign in to comment.