mirror of
https://github.com/ModOrganizer2/mob.git
synced 2026-07-27 14:07:05 -07:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2a408ff99b |
+6
-1
@@ -33,12 +33,17 @@ namespace mob {
|
|||||||
(clipp::option("--install-prefix") & clipp::value("PATH") >> prefix_) %
|
(clipp::option("--install-prefix") & clipp::value("PATH") >> prefix_) %
|
||||||
"sets CMAKE_INSTALL_PREFIX [default: empty]",
|
"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`");
|
(clipp::value("PATH") >> path_) % "path from which to run `cmake`");
|
||||||
}
|
}
|
||||||
|
|
||||||
int cmake_command::do_run()
|
int cmake_command::do_run()
|
||||||
{
|
{
|
||||||
auto t = tasks::modorganizer::create_cmake_tool(fs::path(utf8_to_utf16(path_)));
|
auto t = tasks::modorganizer::create_cmake_tool(
|
||||||
|
fs::path(utf8_to_utf16(path_)), mob::cmake::generate,
|
||||||
|
debug_ ? config::debug : config::relwithdebinfo);
|
||||||
|
|
||||||
t.generator(gen_);
|
t.generator(gen_);
|
||||||
t.cmd(cmd_);
|
t.cmd(cmd_);
|
||||||
|
|||||||
+2
-1
@@ -382,7 +382,8 @@ namespace mob {
|
|||||||
private:
|
private:
|
||||||
std::string gen_;
|
std::string gen_;
|
||||||
std::string cmd_;
|
std::string cmd_;
|
||||||
bool x64_ = true;
|
bool x64_ = true;
|
||||||
|
bool debug_ = false;
|
||||||
std::string prefix_;
|
std::string prefix_;
|
||||||
std::string path_;
|
std::string path_;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user