Commit b9f5a2f4 authored by Alexander Shishkov's avatar Alexander Shishkov

fixed compilation on Mingw64

parent 15808067
......@@ -28,8 +28,11 @@ macro(define_opencv_module name)
source_group("Include" FILES ${lib_hdrs})
set(the_target "opencv_${name}")
add_library(${the_target} ${lib_srcs} ${lib_hdrs} ${lib_int_hdrs})
if (${name} MATCHES "ts" AND MINGW)
add_library(${the_target} STATIC ${lib_srcs} ${lib_hdrs} ${lib_int_hdrs})
else()
add_library(${the_target} ${lib_srcs} ${lib_hdrs} ${lib_int_hdrs})
endif()
# For dynamic link numbering convenions
if(NOT ANDROID)
......
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