From 1ee2c5de852baeeb43e384bdace17f687d47e7e0 Mon Sep 17 00:00:00 2001 From: Cloudwalk Date: Fri, 17 Sep 2021 10:36:02 -0400 Subject: [PATCH] cmake: Only include OBJ_VIDEO_CAPTURE if ENGINE_CONFIG_VIDEO_CAPTURE is on --- buildsys/target/engine/client.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildsys/target/engine/client.cmake b/buildsys/target/engine/client.cmake index 844bcdab..fe5a5804 100644 --- a/buildsys/target/engine/client.cmake +++ b/buildsys/target/engine/client.cmake @@ -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() -- 2.39.2