From 65d7ca3f79e446fe2eb2ff410867870bae63f163 Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Sat, 3 Jan 2026 15:14:19 -0800 Subject: [PATCH] Fix defines like LF_SOURCE_DIRECTORY and -B argument --- src/backends/cmake_c.rs | 8 ++++---- src/backends/cmake_cpp.rs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backends/cmake_c.rs b/src/backends/cmake_c.rs index b0dae27..570d4e9 100644 --- a/src/backends/cmake_c.rs +++ b/src/backends/cmake_c.rs @@ -55,17 +55,17 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult { cmake.arg("-DCMAKE_INSTALL_BINDIR=bin"); cmake.arg(format!( - "-DLF_SOURCE_DIRECTORY=\"{}\"", + "-DLF_SOURCE_DIRECTORY={}", app.src_dir_path().unwrap().display() )); cmake.arg(format!( - "-DLF_PACKAGE_DIRECTORY=\"{}\"", + "-DLF_PACKAGE_DIRECTORY={}", app.root_path.display() )); cmake.arg(format!( - "-DLF_SOURCE_GEN_DIRECTORY=\"{}\"", + "-DLF_SOURCE_GEN_DIRECTORY={}", app.src_gen_dir() .join(app.main_reactor_name.clone()) .display() @@ -81,7 +81,7 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult { )); cmake.arg(&app_build_folder); - cmake.arg(format!("-B {}", app_build_folder.display())); + cmake.arg(format!("-B{}", app_build_folder.display())); cmake.current_dir(&build_dir); println!("Running cmake command `{:?}`", cmake); diff --git a/src/backends/cmake_cpp.rs b/src/backends/cmake_cpp.rs index 62e85b8..1f3c762 100644 --- a/src/backends/cmake_cpp.rs +++ b/src/backends/cmake_cpp.rs @@ -64,7 +64,7 @@ fn gen_cmake_files(app: &App, options: &BuildCommandOptions) -> BuildResult { .display() )); cmake.arg(src_gen_dir); - cmake.arg(format!("-B {}", build_dir.display())); + cmake.arg(format!("-B{}", build_dir.display())); cmake.current_dir(&build_dir); execute_command_to_build_result(cmake)