Commit 3e052c94 authored by orbea's avatar orbea Committed by Rafael Kitover
Browse files

cmake: Fix -DENABLE_FFMPEG=OFF

parent df0bd439
......@@ -513,12 +513,14 @@ TARGET_LINK_LIBRARIES (
${OPENAL_LIBRARY}
)
join("${FFMPEG_LDFLAGS}" " " FFMPEG_LDFLAGS_STR)
set_target_properties(
visualboyadvance-m
PROPERTIES LINK_FLAGS ${FFMPEG_LDFLAGS_STR}
)
if(ENABLE_FFMPEG)
join("${FFMPEG_LDFLAGS}" " " 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment