I assumed NO_VIDEOREC would be set if ${FFMPEG_FOUND} was false. doesn't seem to be the case.
--- a/hedgewars/CMakeLists.txt Sun Sep 02 21:55:56 2012 +0200
+++ b/hedgewars/CMakeLists.txt Sun Sep 02 22:09:06 2012 +0200
@@ -253,7 +253,7 @@
# hence the command is not needed there
if(NOT APPLE)
add_custom_target(ENGINECLEAN COMMAND ${CMAKE_BUILD_TOOL} "clean" "${PROJECT_BINARY_DIR}" "${hedgewars_SOURCE_DIR}/hedgewars")
- if(NO_VIDEOREC)
+ if(NO_VIDEOREC OR NOT ${FFMPEG_FOUND})
add_dependencies(${engine_output_name} ENGINECLEAN)
else()
add_dependencies(avwrapper ENGINECLEAN)