diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-06-27 16:13:58 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:32 +0200 |
commit | 5bb7ee28bc4f5a0ee119de46165c507d6db995a3 (patch) | |
tree | 42f0c8751dcff69e27f5698f703c0f253d361fa6 /include | |
parent | 02eb206cb76c9efd6cecf9f9493eecfa410d4da3 (diff) |
Only show warnings in main project. TODO: Add option to show for dependencies
Diffstat (limited to 'include')
-rw-r--r-- | include/Conf.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/Conf.hpp b/include/Conf.hpp index c8c22e1..7117087 100644 --- a/include/Conf.hpp +++ b/include/Conf.hpp @@ -214,7 +214,8 @@ namespace sibs cVersion(CVersion::C11), cppVersion(CPPVersion::CPP14), mainProject(false), - sanitize(false) + sanitize(false), + showWarnings(false) { cmakeDirGlobal = projectPath; cmakeDirStatic = cmakeDirGlobal; @@ -406,6 +407,8 @@ namespace sibs // Get define value by name. // Return empty string if the value is empty or if the defined value doesn't exist const std::string& getDefinedValue(const std::string &name) const; + + bool showWarnings; protected: virtual void processObject(StringView name) override; virtual void processField(StringView name, const ConfigValue &value) override; @@ -460,6 +463,7 @@ namespace sibs SibsTestConfig(Compiler _compiler, const FileString &_projectPath, OptimizationLevel _optimizationLevel) : SibsConfig(_compiler, _projectPath, _optimizationLevel, true) { packageName = "test"; + showWarnings = true; } virtual ~SibsTestConfig(){} |