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")
|
||||
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")
|
||||
|
|
Loading…
Reference in New Issue