|
|
@ -21,8 +21,7 @@ const char *handle_args(int argc, char **argv) {
|
|
|
|
throw std::runtime_error(cmkr::help::message());
|
|
|
|
throw std::runtime_error(cmkr::help::message());
|
|
|
|
std::string main_arg = args[1];
|
|
|
|
std::string main_arg = args[1];
|
|
|
|
if (main_arg == "gen") {
|
|
|
|
if (main_arg == "gen") {
|
|
|
|
auto current_path = fs::current_path();
|
|
|
|
auto ret = cmkr::gen::generate_cmake(fs::current_path().string().c_str());
|
|
|
|
auto ret = cmkr::gen::generate_cmake(current_path.string().c_str());
|
|
|
|
|
|
|
|
if (ret)
|
|
|
|
if (ret)
|
|
|
|
return "CMake generation error!";
|
|
|
|
return "CMake generation error!";
|
|
|
|
return "CMake generation successful!";
|
|
|
|
return "CMake generation successful!";
|
|
|
|