summaryrefslogtreecommitdiff
path: root/sw.cpp
diff options
context:
space:
mode:
authorEgor Pugin <egor.pugin@gmail.com>2020-03-15 13:43:30 +0300
committerEgor Pugin <egor.pugin@gmail.com>2020-03-15 13:43:30 +0300
commita1acba9a850cf80cf645756dd938940beafa57e7 (patch)
treea712b6f955bd496df04dfc4591284db2f7cc301a /sw.cpp
parentb780dfdf19b86b500295d43c19f8f8cf914b61b5 (diff)
Use make_unique if C++14 and above is available. Kudos to @JellyBrick.
Diffstat (limited to 'sw.cpp')
-rw-r--r--sw.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw.cpp b/sw.cpp
index 8aac529..bfd4a94 100644
--- a/sw.cpp
+++ b/sw.cpp
@@ -6,6 +6,10 @@ void build(Solution &s)
tgbot += cpp11;
tgbot.ApiName = "TGBOT_API";
+
+ if (tgbot.getCompilerType() == CompilerType::MSVC)
+ tgbot.CompileOptions.push_back("/Zc:__cplusplus");
+
tgbot.Public += "org.sw.demo.boost.property_tree"_dep;
tgbot.Public += "org.sw.demo.openssl.ssl"_dep;
tgbot.Public += "org.sw.demo.boost.system"_dep;