diff --git a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp index 58ac6660..ca464a8d 100644 --- a/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML App.xctemplate/main.cpp @@ -64,12 +64,12 @@ int main(int, char const**) while (window.pollEvent(event)) { // Close window: exit - if (event.type == sf::Event::Closed) { + if (event.type == sf::Event::Type::Closed) { window.close(); } // Escape pressed: exit - if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) { + if (event.type == sf::Event::Type::KeyPressed && event.key.code == sf::Keyboard::Key::Escape) { window.close(); } } diff --git a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp index 106f6e2b..e10f2aa0 100644 --- a/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp +++ b/tools/xcode/templates/SFML/SFML CLT.xctemplate/main.cpp @@ -62,12 +62,12 @@ int main(int argc, char const** argv) while (window.pollEvent(event)) { // Close window: exit - if (event.type == sf::Event::Closed) { + if (event.type == sf::Event::Type::Closed) { window.close(); } // Escape pressed: exit - if (event.type == sf::Event::KeyPressed && event.key.code == sf::Keyboard::Escape) { + if (event.type == sf::Event::Type::KeyPressed && event.key.code == sf::Keyboard::Key::Escape) { window.close(); } } diff --git a/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in b/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in index 11551bdf..d390dab6 100644 --- a/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in +++ b/tools/xcode/templates/SFML/SFML Compiler.xctemplate/TemplateInfo.plist.in @@ -25,7 +25,7 @@ subject to the following restrictions: --> - Options - - - Identifier - compilerSettingsType - - Name - [ADVANCED] C++ Compiler and Standard Library - - Description - If you don't know what is it about, use the default value. Note that you'll need a version of SFML compiled with Clang and libc++ to use C++11! - - Default - C++11 with Clang and libc++ - - NotPersisted - - - Type - popup - - Units - - - C++98 with Clang and libstdc++ - - Project - - SharedSettings - - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - - CLANG_CXX_LANGUAGE_STANDARD - c++98 - - CLANG_CXX_LIBRARY - libstdc++ - - - - - - C++11 with Clang and libc++ - - Project - - SharedSettings - - GCC_VERSION - com.apple.compilers.llvm.clang.1_0 - - CLANG_CXX_LANGUAGE_STANDARD - c++0x - - CLANG_CXX_LIBRARY - libc++ - - - - - - - - @@ -140,6 +72,16 @@ subject to the following restrictions: LIBRARY_SEARCH_PATHS /usr/local/lib/ $(inherited) + + + GCC_VERSION + com.apple.compilers.llvm.clang.1_0 + + CLANG_CXX_LANGUAGE_STANDARD + gnu++14 + + CLANG_CXX_LIBRARY + libc++ Configurations