Skip to content

Commit d9c1d48

Browse files
committed
cmake: fix OPENGL_LIBRARIES handling
1 parent 41b70b0 commit d9c1d48

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/rgbd/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ ocv_define_module(rgbd opencv_core opencv_calib3d opencv_imgproc OPTIONAL opencv
55
if(NOT HAVE_EIGEN)
66
message(STATUS "rgbd: Eigen support is disabled. Eigen is Required for Posegraph optimization")
77
endif()
8+
9+
if(HAVE_OPENGL)
10+
ocv_target_link_libraries(${the_module} PRIVATE "${OPENGL_LIBRARIES}")
11+
endif()

0 commit comments

Comments
 (0)