Skip to content

Commit 8bd6316

Browse files
committed
Merge pull request #3128 from alalek:cmake_fix_opengl
2 parents 744a459 + d9c1d48 commit 8bd6316

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)