set(HAVE_FFMPEG 1)\r
endif() \r
endif()\r
+ # Find the bzip2 library because it is required on some systems\r
+ FIND_LIBRARY(BZIP2_LIBRARIES NAMES bz2 bzip2)\r
+ if(NOT BZIP2_LIBRARIES)\r
+ # Do an other trial\r
+ FIND_FILE(BZIP2_LIBRARIES NAMES libbz2.so.1 PATHS /lib)\r
+ endif()\r
endif()\r
\r
if(WITH_1394)\r
if(HAVE_FFMPEG)
set(highgui_srcs ${highgui_srcs} cvcap_ffmpeg.cpp)
- set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} bz2)
+ if(BZIP2_LIBRARIES)
+ set(HIGHGUI_LIBRARIES ${HIGHGUI_LIBRARIES} ${BZIP2_LIBRARIES})
+ endif()
endif()
if(HAVE_PVAPI)