From 5015829ce88916e3e6fa69a8dc77346a5e34e4d6 Mon Sep 17 00:00:00 2001 From: Maksim Shabunin Date: Thu, 13 Jun 2019 15:10:24 +0300 Subject: [PATCH] Fixed plugin installation location on Windows --- modules/videoio/cmake/plugin.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/videoio/cmake/plugin.cmake b/modules/videoio/cmake/plugin.cmake index 6252452fa9..f7cdd6277d 100644 --- a/modules/videoio/cmake/plugin.cmake +++ b/modules/videoio/cmake/plugin.cmake @@ -29,7 +29,12 @@ function(ocv_create_builtin_videoio_plugin name target) CXX_STANDARD 11 CXX_VISIBILITY_PRESET hidden ) - install(TARGETS ${name} LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT plugins OPTIONAL) + + if(WIN32) + install(TARGETS ${name} OPTIONAL LIBRARY DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT plugins) + else() + install(TARGETS ${name} OPTIONAL LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT plugins) + endif() add_dependencies(opencv_videoio_plugins ${name})