diff --git a/src/notebook.cc b/src/notebook.cc index af4f449..b0226cf 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -136,6 +136,7 @@ bool Notebook::save(int page) { bool Notebook::make_compile_commands() { if(project_path.size()>0) { 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")) { //TODO: refresh directories return true; diff --git a/src/terminal.cc b/src/terminal.cc index 9eeb84d..de42e7c 100644 --- a/src/terminal.cc +++ b/src/terminal.cc @@ -63,6 +63,7 @@ bool Terminal::execute(const std::string &path, const std::string &command) { else boost_path=boost::filesystem::path(path); + //TODO: Windows... auto cd_path_and_command="cd "+boost_path.string()+" 2>&1 && "+command; FILE* p = NULL;