Skip to content

Commit

Permalink
fix link imgui_example_glfw_opengl3
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Dec 5, 2023
1 parent c65787d commit d79dbdd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bindings/imgui_bundle/demos_cpp/demos_immapp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
add_this_folder_demos()

if(UNIX AND NOT APPLE)
target_link_libraries(imgui_example_glfw_opengl3 PUBLIC GL)
if (UNIX OR (APPLE AND NOT IOS))
find_package(OpenGL REQUIRED)
target_link_libraries(imgui_example_glfw_opengl3 PUBLIC OpenGL::GL)
endif()

if(EMSCRIPTEN AND HELLOIMGUI_EMSCRIPTEN_PTHREAD)
Expand Down

0 comments on commit d79dbdd

Please sign in to comment.