Browse Source

Fix SFML check (check only system module as other can be disabled) (#163)

Jérôme Leclercq 4 years ago
parent
commit
e488ade016
1 changed files with 3 additions and 4 deletions
  1. 3 4
      packages/s/sfml/xmake.lua

+ 3 - 4
packages/s/sfml/xmake.lua

@@ -123,9 +123,8 @@ package("sfml")
     on_test(function (package)
     on_test(function (package)
         assert(package:check_cxxsnippets({test = [[
         assert(package:check_cxxsnippets({test = [[
             void test(int args, char** argv) {
             void test(int args, char** argv) {
-                sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!");
-                sf::CircleShape shape(100.f);
-                shape.setFillColor(sf::Color::Green);
+                sf::Clock c;
+                c.restart();
             }
             }
-        ]]}, {includes = "SFML/Graphics.hpp"}))
+        ]]}, {includes = "SFML/System.hpp"}))
     end)
     end)