win32: always link to vfw32

This commit is contained in:
Sergiu Dotenco 2012-08-30 14:52:39 +02:00
parent a6e2acbfee
commit 85eae7b30d
2 changed files with 5 additions and 7 deletions

View File

@ -169,12 +169,11 @@ endif(WITH_VIDEOINPUT)
# --- Extra HighGUI libs on Windows ---
if(WIN32)
list(APPEND HIGHGUI_LIBRARIES comctl32 gdi32 ole32)
if(MSVC)
list(APPEND HIGHGUI_LIBRARIES vfw32)
elseif(MINGW64)
list(APPEND HIGHGUI_LIBRARIES msvfw32 avifil32 avicap32 winmm)
list(APPEND HIGHGUI_LIBRARIES comctl32 gdi32 ole32 vfw32)
if(MINGW64)
list(APPEND HIGHGUI_LIBRARIES avifil32 avicap32 winmm msvfw32)
list(REMOVE_ITEM HIGHGUI_LIBRARIES vfw32)
elseif(MINGW)
list(APPEND HIGHGUI_LIBRARIES vfw32 winmm)
list(APPEND HIGHGUI_LIBRARIES winmm)
endif()
endif(WIN32)

View File

@ -107,7 +107,6 @@ endif()
if(WIN32)
list(APPEND highgui_srcs src/cap_vfw.cpp src/cap_cmu.cpp src/cap_dshow.cpp)
list(APPEND HIGHGUI_LIBRARIES vfw32)
endif(WIN32)
if(HAVE_XINE)