Skip to content

Commit

Permalink
Remove residual GLEW linking on Windows and Mac OS too.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanfanel committed Feb 6, 2024
1 parent 480b2d1 commit d3fcf48
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions extern/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,9 @@ else()
endif()

if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_package(GLEW REQUIRED)
target_link_libraries(ImGui PUBLIC opengl32 GLEW::GLEW)
target_link_libraries(ImGui PUBLIC opengl32)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
find_package(GLEW REQUIRED)
target_link_libraries(ImGui PUBLIC ${OPENGL_opengl_LIBRARY} GLEW::GLEW)
target_link_libraries(ImGui PUBLIC ${OPENGL_opengl_LIBRARY})
set_target_properties(ImGui PROPERTIES
XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC YES
)
Expand Down

0 comments on commit d3fcf48

Please sign in to comment.