Skip to content

Commit

Permalink
Add debug symbols to ImGui
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Jan 9, 2024
1 parent 6cc797c commit c42d60a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions external/imgui.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ target_compile_definitions(imgui PRIVATE IMGUI_ENABLE_FREETYPE)
target_link_libraries(imgui PRIVATE Qt${QT_VERSION_MAJOR}::Widgets
Freetype::Freetype)

if (MSVC)
# Produce PDB file for debug
target_compile_options(imgui PRIVATE "$<$<CONFIG:Release>:/Zi>")
else()
target_compile_options(imgui PRIVATE "$<$<CONFIG:Release>:-g>")
endif()

set(IMGUI_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/imgui
${CMAKE_CURRENT_SOURCE_DIR}/imgui-backend-qt
PARENT_SCOPE)
Expand Down

0 comments on commit c42d60a

Please sign in to comment.