fixed compilation on Mingw64

This commit is contained in:
Alexander Shishkov 2011-06-14 13:40:08 +00:00
parent 1580806730
commit b9f5a2f4ee

View File

@ -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)