Skip to content

Commit

Permalink
do not configure cmake on template creation
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 authored Feb 8, 2024
1 parent 901144d commit 594a995
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/template.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 :)");
}

Expand Down

0 comments on commit 594a995

Please sign in to comment.