From b9f5a2f4ee4b683fb3f90753d569d4a3fc60751b Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Tue, 14 Jun 2011 13:40:08 +0000 Subject: [PATCH] fixed compilation on Mingw64 --- OpenCVModule.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/OpenCVModule.cmake b/OpenCVModule.cmake index 8cf4f21..7a19a7b 100644 --- a/OpenCVModule.cmake +++ b/OpenCVModule.cmake @@ -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) -- 2.7.4