Skip to content

Commit

Permalink
abstract_runner: check HELLOIMGUI_WITH_TEST_ENGINE (instead of deprec…
Browse files Browse the repository at this point in the history
…ated IMGUI_BUNDLE_WITH_TEST_ENGINE)
  • Loading branch information
pthom committed Nov 24, 2024
1 parent 68dc965 commit 4337dc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,9 @@ option(HELLOIMGUI_BUILD_TESTS "Build tests" OFF)
#------------------------------------------------------------------------------
# Options / ImGui Test Engine
#------------------------------------------------------------------------------
option(HELLOIMGUI_WITH_TEST_ENGINE "Provide ImGui Test engine" OFF)
if (NOT DEFINED HELLOIMGUI_WITH_TEST_ENGINE)
option(HELLOIMGUI_WITH_TEST_ENGINE "Provide ImGui Test engine" OFF)
endif()
message(STATUS "HELLOIMGUI_WITH_TEST_ENGINE=${HELLOIMGUI_WITH_TEST_ENGINE}")

#------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/hello_imgui/internal/backend_impls/abstract_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ void AbstractRunner::CheckPrefs()
ImGui::GetIO().IniFilename = "";
#endif

#ifndef IMGUI_BUNDLE_WITH_TEST_ENGINE
#ifndef HELLOIMGUI_WITH_TEST_ENGINE
if (params.useImGuiTestEngine)
{
fprintf(stderr, "HelloImGui: RunnerParam.useImGuiTestEngine is true, but HelloImGui was not built with support for ImGui Test Engine. Disabling!\n");
Expand Down

0 comments on commit 4337dc5

Please sign in to comment.