CMakeLists.txt
changeset 14992 b35a036d6b97
parent 14859 8d65728c4ed0
child 15294 95281174e297
equal deleted inserted replaced
14991:dc50766f6d0c 14992:b35a036d6b97
    49 endif()
    49 endif()
    50 
    50 
    51 option(NOVERSIONINFOUPDATE "Disable update of version_info.txt. To be used if source is in a git/repo that is NOT the hedgewars repo" OFF)
    51 option(NOVERSIONINFOUPDATE "Disable update of version_info.txt. To be used if source is in a git/repo that is NOT the hedgewars repo" OFF)
    52 
    52 
    53 
    53 
       
    54 if(BUILD_ENGINE_C AND NOT NOVIDEOREC)
       
    55     if((CMAKE_BUILD_TYPE MATCHES "RELEASE") OR (CMAKE_BUILD_TYPE MATCHES "RELWITHDEBUGINFO"))
       
    56         message("NOTE: Video recorder support disabled. It's incompatible with BUILD_ENGINE_C")
       
    57         set(BUILD_ENGINE_C ON CACHE STRING "Required for BUILD_ENGINE_JS" FORCE)
       
    58     else()
       
    59         message("WARNING: Video recorder support is currently incompatible with BUILD_ENGINE_C, the video recorder won't work (but demos are fine)! See <https://issues.hedgewars.org/show_bug.cgi?id=722>.")
       
    60     endif()
       
    61 endif()
    54 if(BUILD_ENGINE_JS)
    62 if(BUILD_ENGINE_JS)
    55     if(NOT CMAKE_TOOLCHAIN_FILE)
    63     if(NOT CMAKE_TOOLCHAIN_FILE)
    56         message(FATAL_ERROR "Missing emscripten toolchain file\nClean your cache and rerun cmake with -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake_modules/Platform/Emscripten.cmake")
    64         message(FATAL_ERROR "Missing emscripten toolchain file\nClean your cache and rerun cmake with -DCMAKE_TOOLCHAIN_FILE=${CMAKE_SOURCE_DIR}/cmake_modules/Platform/Emscripten.cmake")
    57     endif()
    65     endif()
    58 
    66