diff --git a/Components/Overlay/CMakeLists.txt b/Components/Overlay/CMakeLists.txt index 71c8a410b29..56295a77c49 100644 --- a/Components/Overlay/CMakeLists.txt +++ b/Components/Overlay/CMakeLists.txt @@ -19,11 +19,11 @@ list(APPEND HEADER_FILES file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp") if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI) - set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.90.9" CACHE PATH "") + set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.91.0" CACHE PATH "") if(NOT EXISTS ${IMGUI_DIR}) message(STATUS "Downloading imgui") file(DOWNLOAD - https://github.com/ocornut/imgui/archive/v1.90.9.tar.gz + https://github.com/ocornut/imgui/archive/v1.91.0.tar.gz ${PROJECT_BINARY_DIR}/imgui.tar.gz) execute_process(COMMAND ${CMAKE_COMMAND} -E tar xf imgui.tar.gz WORKING_DIRECTORY ${PROJECT_BINARY_DIR}) @@ -77,6 +77,8 @@ if(OGRE_BUILD_COMPONENT_OVERLAY_IMGUI) COMPILE_FLAGS "-Wno-cast-qual") set_source_files_properties(${IMGUI_DIR}/imgui.cpp PROPERTIES COMPILE_FLAGS "-Wno-cast-qual -Wno-unused-variable") + set_source_files_properties(${IMGUI_DIR}/imgui_demo.cpp PROPERTIES + COMPILE_FLAGS "-Wno-cast-qual") if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") set_property(SOURCE ${IMGUI_DIR}/misc/freetype/imgui_freetype.cpp APPEND PROPERTY COMPILE_OPTIONS "-Wno-unknown-warning-option") diff --git a/Components/Overlay/include/ImGui.i b/Components/Overlay/include/ImGui.i index f63e1430fc5..046e2a9fc71 100644 --- a/Components/Overlay/include/ImGui.i +++ b/Components/Overlay/include/ImGui.i @@ -21,6 +21,8 @@ %ignore ImGui::SetTooltipV; %ignore ImGui::SetItemTooltipV; %ignore ImGuiTextBuffer::appendfv; +%ignore ImGui::DebugLogV; +%ignore ImGuiSelectionBasicStorage; %typemap(in) ImTextureID { size_t argp;