diff --git a/imgui/CMakeLists.txt b/imgui/CMakeLists.txt index 2b0b4a9115..82b1592bd3 100644 --- a/imgui/CMakeLists.txt +++ b/imgui/CMakeLists.txt @@ -54,6 +54,7 @@ file(GLOB imgui_sources ${imgui_srcdir}/*.cpp) set(implot_srcdir ${CMAKE_CURRENT_BINARY_DIR}/implot-src) file(GLOB implot_sources ${implot_srcdir}/*.cpp) add_library(imgui STATIC ${imgui_sources} ${implot_sources} ${imgui_srcdir}/examples/imgui_impl_glfw.cpp ${imgui_srcdir}/examples/imgui_impl_opengl3.cpp ${CMAKE_CURRENT_BINARY_DIR}/imgui_ProggyDotted.cpp ${CMAKE_CURRENT_BINARY_DIR}/stb_image.cpp) +target_compile_definitions(imgui PUBLIC IMGUI_IMPL_OPENGL_LOADER_GL3W) if (MSVC) target_sources(imgui PRIVATE ${imgui_srcdir}/examples/imgui_impl_directx11.cpp) else()