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 <waruqi@gmail.com>
pull/1514/head
PoloNX 2 years ago committed by GitHub
parent a591c43770
commit 42d52fd516
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 14
      packages/i/imgui-sfml/patches/v2.5/macosx.patch
  2. 1
      packages/i/imgui-sfml/xmake.lua

@ -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()

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

Loading…
Cancel
Save