From dd0392b4bd9eeeefed03b98d1170f6f2e5337829 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 3 Aug 2015 12:00:48 +0200 Subject: [PATCH] Added Windows TODOs. --- src/notebook.cc | 1 + src/terminal.cc | 1 + 2 files changed, 2 insertions(+) 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;