]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
cmake: Only include OBJ_VIDEO_CAPTURE if ENGINE_CONFIG_VIDEO_CAPTURE is on
authorCloudwalk <cloudwalk@icculus.org>
Fri, 17 Sep 2021 14:36:02 +0000 (10:36 -0400)
committerCloudwalk <cloudwalk@icculus.org>
Fri, 17 Sep 2021 14:36:02 +0000 (10:36 -0400)
buildsys/target/engine/client.cmake

index 844bcdab40be88f3a551adc20899f465c9b04860..fe5a5804f3f9e1319727884cee72dad1c551be8a 100644 (file)
@@ -1,4 +1,4 @@
-add_executable(client ${OBJ_CL} ${OBJ_MENU} ${OBJ_SND_COMMON} ${OBJ_CD_COMMON} ${OBJ_VIDEO_CAPTURE})
+add_executable(client ${OBJ_CL} ${OBJ_MENU} ${OBJ_SND_COMMON} ${OBJ_CD_COMMON})
 target_link_libraries(client common)
 set_target_properties(client PROPERTIES OUTPUT_NAME "${ENGINE_BUILD_NAME}")
 
@@ -61,4 +61,5 @@ endif()
 
 if(ENGINE_CONFIG_VIDEO_CAPTURE)
        target_compile_definitions(client PRIVATE -DCONFIG_VIDEO_CAPTURE)
+       target_sources(client PRIVATE ${OBJ_VIDEO_CAPTURE})
 endif()