I assumed NO_VIDEOREC would be set if ${FFMPEG_FOUND} was false. doesn't seem to be the case.
authorsheepluva
Sun, 02 Sep 2012 22:09:06 +0200
changeset 7654 e07580669a3e
parent 7653 6dda2562f692
child 7655 b993257902d3
I assumed NO_VIDEOREC would be set if ${FFMPEG_FOUND} was false. doesn't seem to be the case.
hedgewars/CMakeLists.txt
--- 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)