Skip to content

Commit 2e799b3

Browse files
authored
Fix defines like LF_SOURCE_DIRECTORY and -B argument (#64)
1 parent 4bd48be commit 2e799b3

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/backends/cmake_c.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult {
5555

5656
cmake.arg("-DCMAKE_INSTALL_BINDIR=bin");
5757
cmake.arg(format!(
58-
"-DLF_SOURCE_DIRECTORY=\"{}\"",
58+
"-DLF_SOURCE_DIRECTORY={}",
5959
app.src_dir_path().unwrap().display()
6060
));
6161

6262
cmake.arg(format!(
63-
"-DLF_PACKAGE_DIRECTORY=\"{}\"",
63+
"-DLF_PACKAGE_DIRECTORY={}",
6464
app.root_path.display()
6565
));
6666

6767
cmake.arg(format!(
68-
"-DLF_SOURCE_GEN_DIRECTORY=\"{}\"",
68+
"-DLF_SOURCE_GEN_DIRECTORY={}",
6969
app.src_gen_dir()
7070
.join(app.main_reactor_name.clone())
7171
.display()
@@ -81,7 +81,7 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult {
8181
));
8282

8383
cmake.arg(&app_build_folder);
84-
cmake.arg(format!("-B {}", app_build_folder.display()));
84+
cmake.arg(format!("-B{}", app_build_folder.display()));
8585
cmake.current_dir(&build_dir);
8686

8787
println!("Running cmake command `{:?}`", cmake);

src/backends/cmake_cpp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult {
6464
.display()
6565
));
6666
cmake.arg(src_gen_dir);
67-
cmake.arg(format!("-B {}", build_dir.display()));
67+
cmake.arg(format!("-B{}", build_dir.display()));
6868
cmake.current_dir(&build_dir);
6969

7070
execute_command_to_build_result(cmake)

0 commit comments

Comments
 (0)