File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,17 @@ namespace mob {
33
33
(clipp::option (" --install-prefix" ) & clipp::value (" PATH" ) >> prefix_) %
34
34
" sets CMAKE_INSTALL_PREFIX [default: empty]" ,
35
35
36
+ (clipp::option (" -d" , " --debug" ).set (debug_, true )) %
37
+ " whether to configure for debug mode [default: false]" ,
38
+
36
39
(clipp::value (" PATH" ) >> path_) % " path from which to run `cmake`" );
37
40
}
38
41
39
42
int cmake_command::do_run ()
40
43
{
41
- auto t = tasks::modorganizer::create_cmake_tool (fs::path (utf8_to_utf16 (path_)));
44
+ auto t = tasks::modorganizer::create_cmake_tool (
45
+ fs::path (utf8_to_utf16 (path_)), mob::cmake::generate,
46
+ debug_ ? config::debug : config::relwithdebinfo);
42
47
43
48
t.generator (gen_);
44
49
t.cmd (cmd_);
Original file line number Diff line number Diff line change @@ -382,7 +382,8 @@ namespace mob {
382
382
private:
383
383
std::string gen_;
384
384
std::string cmd_;
385
- bool x64_ = true ;
385
+ bool x64_ = true ;
386
+ bool debug_ = false ;
386
387
std::string prefix_;
387
388
std::string path_;
388
389
};
You can’t perform that action at this time.
0 commit comments