2 changed files with 2 additions and 8 deletions
+1 -6
View File
@@ -33,17 +33,12 @@ namespace mob {
(clipp::option("--install-prefix") & clipp::value("PATH") >> prefix_) %
"sets CMAKE_INSTALL_PREFIX [default: empty]",
(clipp::option("-d", "--debug").set(debug_, true)) %
"whether to configure for debug mode [default: false]",
(clipp::value("PATH") >> path_) % "path from which to run `cmake`");
}
int cmake_command::do_run()
{
auto t = tasks::modorganizer::create_cmake_tool(
fs::path(utf8_to_utf16(path_)), mob::cmake::generate,
debug_ ? config::debug : config::relwithdebinfo);
auto t = tasks::modorganizer::create_cmake_tool(fs::path(utf8_to_utf16(path_)));
t.generator(gen_);
t.cmd(cmd_);
+1 -2
View File
@@ -382,8 +382,7 @@ namespace mob {
private:
std::string gen_;
std::string cmd_;
bool x64_ = true;
bool debug_ = false;
bool x64_ = true;
std::string prefix_;
std::string path_;
};