Skip to content

Commit

Permalink
Overlay: update imgui to 1.89.5
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed May 25, 2023
1 parent d71bf97 commit 482c7c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Components/Overlay/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.89.2" CACHE PATH "")
set(IMGUI_DIR "${PROJECT_BINARY_DIR}/imgui-1.89.5" CACHE PATH "")
if(NOT EXISTS ${IMGUI_DIR})
message(STATUS "Downloading imgui")
file(DOWNLOAD
https://github.com/ocornut/imgui/archive/v1.89.2.tar.gz
https://github.com/ocornut/imgui/archive/v1.89.5.tar.gz
${PROJECT_BINARY_DIR}/imgui.tar.gz)
execute_process(COMMAND ${CMAKE_COMMAND}
-E tar xf imgui.tar.gz WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
Expand Down Expand Up @@ -77,6 +77,10 @@ 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")
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")
endif()
endif()

if(MINGW)
Expand Down

0 comments on commit 482c7c9

Please sign in to comment.