فهرست منبع

Fix ImGui-SFML on macosx (#1512)

* Fix ImGui-SFML on macosx

* added the add_patches()

* fix in the .patch

* Add "" around the hash

* Try to fix the error with the patch

* fix the checksum

* Update xmake.lua

* fix the patch

* Update macosx.patch

* Update xmake.lua

* Update xmake.lua

Co-authored-by: ruki <[email protected]>
PoloNX 2 سال پیش
والد
کامیت
42d52fd516
2فایلهای تغییر یافته به همراه15 افزوده شده و 0 حذف شده
  1. 14 0
      packages/i/imgui-sfml/patches/v2.5/macosx.patch
  2. 1 0
      packages/i/imgui-sfml/xmake.lua

+ 14 - 0
packages/i/imgui-sfml/patches/v2.5/macosx.patch

@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index fad29a6..2a9e512 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -164,6 +164,9 @@ set_target_properties(ImGui-SFML PROPERTIES
+   PUBLIC_HEADER "${IMGUI_SFML_PUBLIC_HEADERS}"
+ )
+ 
++# Set minimum required standard
++target_compile_features(ImGui-SFML PUBLIC cxx_std_11)
++
+ if(IMGUI_SFML_BUILD_EXAMPLES)
+   add_subdirectory(examples)
+ endif()

+ 1 - 0
packages/i/imgui-sfml/xmake.lua

@@ -7,6 +7,7 @@ package("imgui-sfml")
              "https://github.com/eliasdaler/imgui-sfml.git")
              "https://github.com/eliasdaler/imgui-sfml.git")
 
 
     add_versions("v2.5", "3775c9303f656297f2392e91ffae2021e874ee319b4139c60076d6f757ede109")
     add_versions("v2.5", "3775c9303f656297f2392e91ffae2021e874ee319b4139c60076d6f757ede109")
+    add_patches("v2.5", path.join(os.scriptdir(), "patches", "v2.5", "macosx.patch"), "1bb74614926dd34034e34a4052794e0b13caa861a780f813ad8a082aac74588f")
 
 
     add_deps("cmake")
     add_deps("cmake")
     add_deps("imgui", {system = false, private = true})
     add_deps("imgui", {system = false, private = true})