remove if disabled in main config
authornemo
Wed, 19 Dec 2018 19:00:29 -0500
changeset 14476 f86bd14a7613
parent 14475 2113296b7a29
child 14493 e78c44ae94da
remove if disabled in main config
project_files/hwc/CMakeLists.txt
--- a/project_files/hwc/CMakeLists.txt	Wed Dec 19 05:50:02 2018 +0100
+++ b/project_files/hwc/CMakeLists.txt	Wed Dec 19 19:00:29 2018 -0500
@@ -37,6 +37,9 @@
 list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/pas2cSystem.pas")
 list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/pas2cRedo.pas")
 list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/hwLibrary.pas")
+if(NOVIDEOREC)
+	list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/uVideoRec.pas")
+endif()
 if(NOT GL2)
     list(REMOVE_ITEM engine_sources_pas "${CMAKE_SOURCE_DIR}/hedgewars/uMatrix.pas")
 endif()