premake / premake-xcode

BSD 3-Clause "New" or "Revised" License
9 stars 15 forks source link

set C++ standard for C++11/C++14 flags #32

Closed fzwoch closed 8 years ago

fzwoch commented 8 years ago

set C++ standard for C++11/C++14 flags. C++14 wins over C++11. While "c++11" as string should be working too I'm using "c++0x" here as this is the string that is being used when selecting "C++11" in the drop down from within Xcode.

akaStiX commented 8 years ago

You can get the same behavior in you premake scripts using

        xcodebuildsettings
        {
            ["CLANG_CXX_LANGUAGE_STANDARD"] = "c++11";
        }