summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt4
-rw-r--r--sw.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 964d70a..d8a02b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,11 +6,11 @@ option(ENABLE_TESTS "Set to ON to enable building of tests" OFF)
option(BUILD_SHARED_LIBS "Build tgbot-cpp shared/static library." OFF)
# sources
+set(CMAKE_CXX_STANDARD 14)
if(WIN32)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
else()
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()
include_directories(include)
diff --git a/sw.cpp b/sw.cpp
index bfd4a94..ab9ba8f 100644
--- a/sw.cpp
+++ b/sw.cpp
@@ -3,7 +3,7 @@ void build(Solution &s)
auto &tgbot = s.addLibrary("reo7sp.tgbot", "1.2.2");
tgbot += Git("https://github.com/reo7sp/tgbot-cpp", "v{M}.{m}{po}");
{
- tgbot += cpp11;
+ tgbot += cpp14;
tgbot.ApiName = "TGBOT_API";
@@ -21,7 +21,7 @@ void build(Solution &s)
auto &t = tgbot.addExecutable("test");
{
t.Scope = TargetScope::Test;
- t += cpp11;
+ t += cpp14;
t += "test/.*"_rr;
t += "test"_idir;
t += "SW_BUILD"_def;