Browse Source

Added Windows TODOs.

merge-requests/365/head
eidheim 10 years ago
parent
commit
dd0392b4bd
  1. 1
      src/notebook.cc
  2. 1
      src/terminal.cc

1
src/notebook.cc

@ -136,6 +136,7 @@ bool Notebook::save(int page) {
bool Notebook::make_compile_commands() { bool Notebook::make_compile_commands() {
if(project_path.size()>0) { if(project_path.size()>0) {
Singleton::terminal()->print("Creating "+boost::filesystem::path(project_path+"/compile_commands.json").string()+"\n"); Singleton::terminal()->print("Creating "+boost::filesystem::path(project_path+"/compile_commands.json").string()+"\n");
//TODO: Windows...
if(Singleton::terminal()->execute(project_path, "cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 2>&1")) { if(Singleton::terminal()->execute(project_path, "cmake . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 2>&1")) {
//TODO: refresh directories //TODO: refresh directories
return true; return true;

1
src/terminal.cc

@ -63,6 +63,7 @@ bool Terminal::execute(const std::string &path, const std::string &command) {
else else
boost_path=boost::filesystem::path(path); boost_path=boost::filesystem::path(path);
//TODO: Windows...
auto cd_path_and_command="cd "+boost_path.string()+" 2>&1 && "+command; auto cd_path_and_command="cd "+boost_path.string()+" 2>&1 && "+command;
FILE* p = NULL; FILE* p = NULL;

Loading…
Cancel
Save