QTfrontend/CMakeLists.txt
changeset 7817 6cc558a69b58
parent 7813 7ac83d79b897
child 7857 2bc61f8841a1
child 7897 5e7c0810f365
--- a/QTfrontend/CMakeLists.txt	Thu Oct 25 01:16:13 2012 +0200
+++ b/QTfrontend/CMakeLists.txt	Thu Oct 25 05:06:00 2012 +0200
@@ -28,7 +28,9 @@
 # Configure for SDL
 find_package(SDL REQUIRED)
 find_package(SDL_mixer REQUIRED)
-find_package(FFMPEG)
+if(NOT NOVIDEOREC)
+    find_package(FFMPEG)
+endif()
 
 include_directories(.)
 include_directories(${CMAKE_CURRENT_SOURCE_DIR}/model)
@@ -73,7 +75,7 @@
 file(GLOB_RECURSE UIcpp ui/*.cpp)
 file(GLOB UtilCpp util/*.cpp)
 
-if((NOT NOVIDEOREC) AND "${FFMPEG_FOUND}")
+if(${FFMPEG_FOUND})
     add_definitions(-DVIDEOREC -D__STDC_CONSTANT_MACROS)
 endif()