Skip to content

Commit 216cd7d

Browse files
committed
cmake: allow to specify own libva paths
via CMake: - `-DVA_LIBRARIES=/opt/intel/mediasdk/lib64/libva.so.2\;/opt/intel/mediasdk/lib64/libva-drm.so.2`
1 parent 4910f16 commit 216cd7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/OpenCVFindVA.cmake

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ endif()
1212

1313
if(VA_INCLUDE_DIR)
1414
set(HAVE_VA TRUE)
15-
set(VA_LIBRARIES "-lva" "-lva-drm")
15+
if(NOT DEFINED VA_LIBRARIES)
16+
set(VA_LIBRARIES "va" "va-drm")
17+
endif()
1618
else()
1719
set(HAVE_VA FALSE)
1820
message(WARNING "libva installation is not found.")

0 commit comments

Comments
 (0)