cmake: Fix -DENABLE_FFMPEG=OFF

This commit is contained in:
orbea 2018-01-18 13:09:29 -08:00 committed by Rafael Kitover
parent df0bd439fb
commit 3e052c943d
1 changed files with 7 additions and 5 deletions

View File

@ -513,12 +513,14 @@ TARGET_LINK_LIBRARIES (
${OPENAL_LIBRARY}
)
join("${FFMPEG_LDFLAGS}" " " FFMPEG_LDFLAGS_STR)
if(ENABLE_FFMPEG)
join("${FFMPEG_LDFLAGS}" " " FFMPEG_LDFLAGS_STR)
set_target_properties(
visualboyadvance-m
PROPERTIES LINK_FLAGS ${FFMPEG_LDFLAGS_STR}
)
set_target_properties(
visualboyadvance-m
PROPERTIES LINK_FLAGS ${FFMPEG_LDFLAGS_STR}
)
endif(ENABLE_FFMPEG)
# Build a console app in debug mode on Windows
IF(WIN32 AND CMAKE_BUILD_TYPE STREQUAL Debug)