From 594a995d7589c798c1bff148d6a48299672720cc Mon Sep 17 00:00:00 2001 From: alk <45172705+altalk23@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:21:01 +0300 Subject: [PATCH] do not configure cmake on template creation --- src/template.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/template.rs b/src/template.rs index fe7e7b0..6467f52 100644 --- a/src/template.rs +++ b/src/template.rs @@ -97,25 +97,6 @@ fn create_template( ) .nice_unwrap("Unable to write to project"); - // FIXME: should this be here? at least have an option, - // right now you can't even tell its running cmake - // made macOS only as windows requires -A win32 - #[cfg(target_os = "macos")] - { - // Generate build folder and compiler_commands.json - if let Ok(path) = which::which("cmake") { - std::process::Command::new(path) - .current_dir(&project_location) - .arg("-B") - .arg("build") - .arg("-DCMAKE_EXPORT_COMPILE_COMMANDS=1") - .output() - .nice_unwrap("Unable to initialize project with CMake"); - } else { - warn!("CMake not found. CMake is required to build Geode projects."); - } - } - done!("Succesfully initialized project! Happy modding :)"); }