Skip to content

Commit dbb5309

Browse files
authored
Ensure libGLEW can be found on Linux
Prevent error when building imgui
1 parent 9ab173d commit dbb5309

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/gui/imgui/CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ target_link_directories(${APP_NAME}
9595
)
9696
endif()
9797

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+
)
104+
endif()
105+
98106
target_link_libraries (${APP_NAME}
99107
PRIVATE
100108
SonicPi::API

0 commit comments

Comments
 (0)