From 634f8b49199adb906009cb352b282ba6bcb8d6be Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 7 Jan 2018 14:55:49 +0100 Subject: Add info about lang.c and lang.cpp --- README.md | 10 ++++++++++ include/Conf.hpp | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3