Skip to content

Commit 788518b

Browse files
mwoehlke-kitwarejcfr
authored andcommitted
Add missing link to OpenGL library
1 parent 0ed92f7 commit 788518b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,12 @@ else()
192192

193193
endif()
194194

195+
if(UNIX)
196+
find_package(OpenGL)
197+
if(OPENGL_FOUND)
198+
list(APPEND QT_LIBRARIES ${OPENGL_LIBRARIES})
199+
endif()
200+
endif()
195201
#-----------------------------------------------------------------------------
196202
# The variable "generated_cpp_suffix" allows to conditionnally compile the generated wrappers
197203
# associated with the Qt version being used.

0 commit comments

Comments
 (0)