pthom / hello_imgui

Hello, Dear ImGui: unleash your creativity in app development and prototyping
https://pthom.github.io/hello_imgui
MIT License
676 stars 103 forks source link

CMake option to disable auto updating #123

Closed ariddl closed 2 months ago

ariddl commented 2 months ago

Hello,

Like the library however every time I run cmake my application breaks from a new update to hello_imgui. Like now my app crashes at startup due to not finding some font. It's really frustrating, and it also takes forever. I just wanted to stay on the version I started with.

Please can you add an easy way to disable auto updates. Thank you.

pthom commented 2 months ago

Hello,

In most cases it should not auto-update. What you describe is strange. In order to understand your issue more details about how you build your application are needed. Namely I would need to know how did you get HelloImGui: is it via a submodule or (in which case you are responsible for updating it) via hello_imgui_template, via vcpkg ?

If you are using hello_imgui_template, there might be a reason: look at the CMakeLists: See this extract:

# 2/  Option 2: simply fetch hello_imgui during the build
if (NOT TARGET hello_imgui)
    message(STATUS "Fetching hello_imgui")
    include(FetchContent)
    FetchContent_Declare(hello_imgui GIT_REPOSITORY https://github.com/pthom/hello_imgui.git GIT_TAG master)
    FetchContent_MakeAvailable(hello_imgui)
endif()

You may want to replace GIT_TAG master by a sha1 reference to a particular commit or to a release tag.

pthom commented 2 months ago

Please keep me updated. Did this solve your issue?

pthom commented 2 months ago

Closing, for lack of answer