force-disable video recording if C build is enabled.
authornemo
Wed, 21 Nov 2018 12:41:55 -0500
changeset 14268 29d614a5c9eb
parent 14267 72e9d69a5e4d
child 14269 6f3f59266c4c
force-disable video recording if C build is enabled.
CMakeLists.txt
--- a/CMakeLists.txt	Wed Nov 21 11:59:20 2018 -0500
+++ b/CMakeLists.txt	Wed Nov 21 12:41:55 2018 -0500
@@ -72,6 +72,9 @@
 if("${CMAKE_SIZEOF_VOID_P}" EQUAL "4" AND UNIX AND NOT APPLE)
     set(BUILD_ENGINE_C ON CACHE STRING "PAS2C force-enabled due to a freepascal 32 bit alignment bug" FORCE)
 endif()
+if(BUILD_ENGINE_C)
+    set(NOVIDEOREC ON CACHE STRING "PAS2C does not support video recording at present" FORCE)
+endif()
 
 #system paths for finding required fonts (see share/hedgewars/Data/fonts)
 #subdirectories will NOT be searched.