diff options
author | Egor Pugin <egor.pugin@gmail.com> | 2020-03-15 13:43:30 +0300 |
---|---|---|
committer | Egor Pugin <egor.pugin@gmail.com> | 2020-03-15 13:43:30 +0300 |
commit | a1acba9a850cf80cf645756dd938940beafa57e7 (patch) | |
tree | a712b6f955bd496df04dfc4591284db2f7cc301a /sw.cpp | |
parent | b780dfdf19b86b500295d43c19f8f8cf914b61b5 (diff) |
Use make_unique if C++14 and above is available. Kudos to @JellyBrick.
Diffstat (limited to 'sw.cpp')
-rw-r--r-- | sw.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |