From 1ec145ec87a0ad9e4b9efcefda5b0a63c9792840 Mon Sep 17 00:00:00 2001 From: Kaitlyn Kenwell Date: Thu, 24 Sep 2020 23:21:44 -0400 Subject: [PATCH] [imgui] Add IMGUI_IMPL_OPENGL_LOADER_GL3W to cmake compile defs (#2728) If compiled on a system with a glew header installed, it would autodetect that first and fail to link. --- imgui/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) 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()