Commit 09ce9875 authored by Alexander Alekhin's avatar Alexander Alekhin

cmake: fix export issue

opencv_ts is static internal library and in case of exporting
it requires all static dependencies (include HAL files)
parent a76fd435
...@@ -859,7 +859,8 @@ macro(_ocv_create_module) ...@@ -859,7 +859,8 @@ macro(_ocv_create_module)
endif() endif()
get_target_property(_target_type ${the_module} TYPE) get_target_property(_target_type ${the_module} TYPE)
if("${_target_type}" STREQUAL "SHARED_LIBRARY" OR (NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB)) if(OPENCV_MODULE_${the_module}_CLASS STREQUAL "PUBLIC" AND
("${_target_type}" STREQUAL "SHARED_LIBRARY" OR (NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB)))
ocv_install_target(${the_module} EXPORT OpenCVModules OPTIONAL ocv_install_target(${the_module} EXPORT OpenCVModules OPTIONAL
RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT libs RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT libs
LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT libs NAMELINK_SKIP LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT libs NAMELINK_SKIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment