Set std=c++14 only when compiling C++ projects.
This commit is contained in:
parent
e1d569dd7c
commit
9961fbde2e
|
@ -64,10 +64,14 @@ filter("platforms:Linux")
|
||||||
system("linux")
|
system("linux")
|
||||||
toolset("clang")
|
toolset("clang")
|
||||||
buildoptions({
|
buildoptions({
|
||||||
"-std=c++14",
|
|
||||||
"-mlzcnt", -- Assume lzcnt supported.
|
"-mlzcnt", -- Assume lzcnt supported.
|
||||||
})
|
})
|
||||||
|
|
||||||
|
filter({"platforms:Linux", "language:C++"})
|
||||||
|
buildoptions({
|
||||||
|
"-std=c++14",
|
||||||
|
})
|
||||||
|
|
||||||
filter("platforms:Windows")
|
filter("platforms:Windows")
|
||||||
system("windows")
|
system("windows")
|
||||||
toolset("msc")
|
toolset("msc")
|
||||||
|
|
Loading…
Reference in New Issue