Automatically enable HARDSUBX whed FFMPEG used

This commit is contained in:
Evgeny Shulgin 2017-02-22 16:36:40 +03:00
parent 00ead85ab7
commit 4f5f564b59
2 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,7 @@ if (PKG_CONFIG_FOUND AND WITH_FFMPEG)
set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS})
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX")
endif (PKG_CONFIG_FOUND AND WITH_FFMPEG)
########################################################

View File

@ -18,6 +18,7 @@ if (WITH_FFMPEG)
set (EXTRA_INCLUDES ${EXTRA_INCLUDES} ${AVCODEC_INCLUDE_DIRS})
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_FFMPEG")
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DENABLE_HARDSUBX")
endif (WITH_FFMPEG)
if (WITH_OCR)