1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

cmake: fix OPENGL_LIBRARIES handling

This commit is contained in:
Alexander Alekhin
2021-12-07 05:47:54 +00:00
parent 35ff9af6ce
commit 65392d5e6b
4 changed files with 3 additions and 2 deletions
+1
View File
@@ -56,6 +56,7 @@ foreach(sample_filename ${cpp_samples})
endif()
if(HAVE_OPENGL AND sample_filename MATCHES "detect_mser")
target_compile_definitions(${tgt} PRIVATE HAVE_OPENGL)
ocv_target_link_libraries(${tgt} PRIVATE "${OPENGL_LIBRARIES}")
endif()
if(sample_filename MATCHES "simd_")
# disabled intentionally - demonstration purposes only