Skip to content

Commit 9c80c40

Browse files
committed
Fixed sfm module static build
1 parent f529a1d commit 9c80c40

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
#Install macro for libmv libraries
22
MACRO (LIBMV_INSTALL_LIB name)
33

4-
set_target_properties( ${name}
5-
PROPERTIES
6-
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
7-
)
4+
if(NOT BUILD_SHARED_LIBS)
5+
ocv_install_target(${name} EXPORT OpenCVModules
6+
ARCHIVE DESTINATION ${OPENCV_3P_LIB_INSTALL_PATH} COMPONENT dev)
7+
endif()
88

9-
ENDMACRO (LIBMV_INSTALL_LIB)
9+
ENDMACRO (LIBMV_INSTALL_LIB)

0 commit comments

Comments
 (0)