We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a76fd43 + 09ce987 commit f0dc7a2Copy full SHA for f0dc7a2
cmake/OpenCVModule.cmake
@@ -859,7 +859,8 @@ macro(_ocv_create_module)
859
endif()
860
861
get_target_property(_target_type ${the_module} TYPE)
862
- 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
863
+ ("${_target_type}" STREQUAL "SHARED_LIBRARY" OR (NOT BUILD_SHARED_LIBS OR NOT INSTALL_CREATE_DISTRIB)))
864
ocv_install_target(${the_module} EXPORT OpenCVModules OPTIONAL
865
RUNTIME DESTINATION ${OPENCV_BIN_INSTALL_PATH} COMPONENT libs
866
LIBRARY DESTINATION ${OPENCV_LIB_INSTALL_PATH} COMPONENT libs NAMELINK_SKIP
0 commit comments