Write config if it doesn't exist.
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
066fda27a6
commit
cf5f9bcca0
|
@ -1,6 +1,6 @@
|
||||||
cmake_minimum_required (VERSION 3.2)
|
cmake_minimum_required (VERSION 3.2)
|
||||||
project(compilescript
|
project(compilescript
|
||||||
VERSION 0.3.3
|
VERSION 0.3.4
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -50,10 +50,7 @@ bool read_settings()
|
||||||
{
|
{
|
||||||
bool need_save = false;
|
bool need_save = false;
|
||||||
xdgcfg config("compilescript.cfg");
|
xdgcfg config("compilescript.cfg");
|
||||||
if (config.read() != 0)
|
config.read();
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
libconfig::Setting &cfg = config.get_cfg().getRoot();
|
libconfig::Setting &cfg = config.get_cfg().getRoot();
|
||||||
|
|
||||||
if (cfg.exists("compiler"))
|
if (cfg.exists("compiler"))
|
||||||
|
|
Reference in New Issue