aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-01-07 14:55:49 +0100
committerdec05eba <dec05eba@protonmail.com>2018-01-07 14:55:53 +0100
commit634f8b49199adb906009cb352b282ba6bcb8d6be (patch)
tree3d26b0a6ff255dd7459772adb6c2395ddc74650e
parent6c8ed38bb07e69c286999548bb1157cc0086256c (diff)
Add info about lang.c and lang.cpp
-rw-r--r--README.md10
-rw-r--r--include/Conf.hpp2
2 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index a930201..7fb10a7 100644
--- a/README.md
+++ b/README.md
@@ -26,6 +26,12 @@ ignore_dirs = ["examples"]
catch2 = "0.1.0"
xxhash = "0.1.0"
+[lang.c]
+version = "c11"
+
+[lang.cpp]
+version = "c++14"
+
[define]
BOOST_ASIO_SEPERATE_COMPILATION = "1"
@@ -88,6 +94,10 @@ Currently, the value is the version and has to be an exact match for the package
This will later change and you should be able to choose minimum version and range of versions.
Dependencies are automatically choosen from system (linux, mac) or if no package manager exists, then it's download from github
+## lang.*
+Optional. Allows you to change language specific configuration. \[lang.c] is for C and \[lang.cpp] is for C++.
+Version specifies the language version, for \[lang.c] the version can be ansi, c89, c99 or c11 - if not set, c11 will be used.
+For \[lang.cpp] the version can be c++11, c++14 or c++17 - if not set, c++14 will be used
## define
Optional. A list of definitions which are specified in name-value pairs where the name is the preprocessor to define (in c: #define name value)
## define.static
diff --git a/include/Conf.hpp b/include/Conf.hpp
index 3dd409d..0b97960 100644
--- a/include/Conf.hpp
+++ b/include/Conf.hpp
@@ -196,7 +196,7 @@ namespace sibs
useCmake(false),
buildTests(_buildTests),
cVersion(CVersion::C11),
- cppVersion(CPPVersion::CPP11)
+ cppVersion(CPPVersion::CPP14)
{
cmakeDirGlobal = projectPath;
cmakeDirStatic = cmakeDirGlobal;