Skip to content

Commit

Permalink
remove stupid file
Browse files Browse the repository at this point in the history
  • Loading branch information
lsproule committed Nov 2, 2023
1 parent b369ca2 commit 9649c28
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/Command/CommandRun.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,33 @@ namespace Command {
return false;
}
#else
system("mkdir -p build");
int success = system("mkdir -p build");
if (success != 0) {
std::cout << "Error creating build directory" << std::endl;
return false;
}
system("cmake . ");
if (success != 0) {
std::cout << "Error building project cmake" << std::endl;
return false;
}
system("make");
if (success != 0) {
std::cout << "Error building project make" << std::endl;
return false;
}
#endif
std::string file_name = "./build/";
#ifdef DEBUG
file_name = "./build/build/";
#endif
std::string command = file_name + ctx->project_name;
success = system(command.c_str());
if (success != 0) {
std::cout << "Error running project" << std::endl;
return false;
}

if (success != 0) {
std::cout << "Error running project" << std::endl;
return false;
Expand Down

0 comments on commit 9649c28

Please sign in to comment.