|
|
|
@ -46,7 +46,7 @@ CMake::CMake(const boost::filesystem::path &path) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
bool CMake::create_compile_commands(const boost::filesystem::path &path) { |
|
|
|
bool CMake::create_compile_commands(const boost::filesystem::path &path) { |
|
|
|
auto message=Dialog::Message("Creating "+path.string()+"/compile_commands.json"); |
|
|
|
Dialog::Message message("Creating "+path.string()+"/compile_commands.json"); |
|
|
|
message.wait_until_drawn(); |
|
|
|
message.wait_until_drawn(); |
|
|
|
auto exit_code=Singleton::terminal->execute(Singleton::config->terminal.cmake_command+" . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON", path); |
|
|
|
auto exit_code=Singleton::terminal->execute(Singleton::config->terminal.cmake_command+" . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON", path); |
|
|
|
message.hide(); |
|
|
|
message.hide(); |
|
|
|
|