Set std=c++14 only when compiling C++ projects.

This commit is contained in:
sephiroth99 2015-09-22 01:08:19 -04:00 committed by Ben Vanik
parent e1d569dd7c
commit 9961fbde2e
1 changed files with 5 additions and 1 deletions

View File

@ -64,10 +64,14 @@ filter("platforms:Linux")
system("linux")
toolset("clang")
buildoptions({
"-std=c++14",
"-mlzcnt", -- Assume lzcnt supported.
})
filter({"platforms:Linux", "language:C++"})
buildoptions({
"-std=c++14",
})
filter("platforms:Windows")
system("windows")
toolset("msc")