Skip to content

Commit 2f3906d

Browse files
authored
Ensure GL3W gets found on Linux
Cleaner fix found during review by Lily Foster.
1 parent e9702f1 commit 2f3906d

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

app/gui/imgui/CMakeLists.txt

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,9 @@ target_link_directories(${APP_NAME}
9393
PRIVATE
9494
/opt/vc/lib
9595
)
96-
endif()
97-
98-
# libglew needs to be explicitly set on Linux
99-
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
100-
target_link_libraries (${APP_NAME}
101-
PRIVATE
102-
GLEW
103-
)
96+
else()
97+
target_compile_definitions(${APP_NAME} PRIVATE
98+
IMGUI_IMPL_OPENGL_LOADER_GL3W)
10499
endif()
105100

106101
target_link_libraries (${APP_NAME}

0 commit comments

Comments
 (0)