From 0807ee70ae2952ac74f3e81509da19adcd9af4a3 Mon Sep 17 00:00:00 2001 From: scawful Date: Wed, 7 Aug 2024 14:58:42 -0400 Subject: [PATCH] add test engine defines on linux for imgui --- cmake/imgui.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/imgui.cmake b/cmake/imgui.cmake index 2e7cf648..1d4f49e3 100644 --- a/cmake/imgui.cmake +++ b/cmake/imgui.cmake @@ -40,4 +40,8 @@ set( ${IMGUI_PATH}/misc/cpp/imgui_stdlib.cpp ${IMGUI_FILE_DLG_PATH}/ImGuiFileDialog.cpp ${IMGUI_COLOR_TEXT_EDIT_PATH}/TextEditor.cpp -) \ No newline at end of file +) + +if (LINUX) + add_definitions("-DIMGUI_ENABLE_TEST_ENGINE -DIMGUI_TEST_ENGINE_ENABLE_COROUTINE_STDTHREAD_IMPL=1") +endif() \ No newline at end of file