From: Cloudwalk Date: Fri, 17 Sep 2021 14:36:02 +0000 (-0400) Subject: cmake: Only include OBJ_VIDEO_CAPTURE if ENGINE_CONFIG_VIDEO_CAPTURE is on X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ee2c5de852baeeb43e384bdace17f687d47e7e0;p=xonotic%2Fdarkplaces.git cmake: Only include OBJ_VIDEO_CAPTURE if ENGINE_CONFIG_VIDEO_CAPTURE is on --- 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()