diff --git a/Project.toml b/Project.toml index d8c51a4..ac8f21f 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CImGui" uuid = "5d785b6c-b76f-510e-a07c-3070796c7e87" authors = ["Yupei Qi "] -version = "7.0.0" +version = "7.0.1" [deps] CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82" diff --git a/docs/src/_changelog.md b/docs/src/_changelog.md index 994292c..ff5a7b4 100644 --- a/docs/src/_changelog.md +++ b/docs/src/_changelog.md @@ -6,6 +6,11 @@ CurrentModule = CImGui This documents notable changes in CImGui.jl. The format is based on [Keep a Changelog](https://keepachangelog.com). +## [v7.0.1] - 2026-01-16 + +### Fixed +- Fixed apps compiled with PackageCompiler - `pkgversion(GLFW)` now evaluates at module precompilation ([#190]). + ## [v7.0.0] - 2026-01-05 ### Changed diff --git a/ext/GlfwOpenGLBackend.jl b/ext/GlfwOpenGLBackend.jl index d0f2f83..470d05f 100644 --- a/ext/GlfwOpenGLBackend.jl +++ b/ext/GlfwOpenGLBackend.jl @@ -8,6 +8,8 @@ import ModernGL as GL using PrecompileTools: @compile_workload +# because pkgversion do not work with PackageCompiler +const GLFW_VERSION = pkgversion(GLFW) # Helper function to get the GLSL version function get_glsl_version(gl_version) @@ -72,7 +74,7 @@ function renderloop(ui, ctx::Ptr{lib.ImGuiContext}, ::Val{:GlfwOpenGL3}; engine=nothing, opengl_version=v"3.2", wait_events=false) - if pkgversion(GLFW) >= v"3.4.4" + if GLFW_VERSION >= v"3.4.4" # We leave thread-safety to the user GLFW.ENABLE_THREAD_ASSERTIONS[] = false end