From 4982a7900edc6c9439ff2976558cb85383450b97 Mon Sep 17 00:00:00 2001 From: Michael Fabian 'Xaymar' Dirks Date: Sat, 30 Sep 2023 07:19:52 +0200 Subject: [PATCH] Fix incorrect target_compile_definitions calls --- components/autoframing/CMakeLists.txt | 2 +- components/denoising/CMakeLists.txt | 2 +- components/upscaling/CMakeLists.txt | 2 +- components/virtual-greenscreen/CMakeLists.txt | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/autoframing/CMakeLists.txt b/components/autoframing/CMakeLists.txt index f373d5d3..3a2cc4c0 100644 --- a/components/autoframing/CMakeLists.txt +++ b/components/autoframing/CMakeLists.txt @@ -16,7 +16,7 @@ function(streamfx_auto_framing_resolver) #- NVIDIA streamfx_enabled_component("NVIDIA" T_CHECK) if(T_CHECK) - target_compile_definitions(${COMPONENT_TARGET} + target_compile_definitions(${COMPONENT_TARGET} PRIVATE PRIVATE ENABLE_NVIDIA ) endif() diff --git a/components/denoising/CMakeLists.txt b/components/denoising/CMakeLists.txt index a2051c34..f3ad6369 100644 --- a/components/denoising/CMakeLists.txt +++ b/components/denoising/CMakeLists.txt @@ -16,7 +16,7 @@ function(streamfx_denoising_resolver) #- NVIDIA streamfx_enabled_component("NVIDIA" T_CHECK) if(T_CHECK) - target_compile_definitions(${COMPONENT_TARGET} + target_compile_definitions(${COMPONENT_TARGET} PRIVATE ENABLE_NVIDIA ) endif() diff --git a/components/upscaling/CMakeLists.txt b/components/upscaling/CMakeLists.txt index 50c377f7..d280eb77 100644 --- a/components/upscaling/CMakeLists.txt +++ b/components/upscaling/CMakeLists.txt @@ -16,7 +16,7 @@ function(streamfx_upscaling_resolver) #- NVIDIA streamfx_enabled_component("NVIDIA" T_CHECK) if(T_CHECK) - target_compile_definitions(${COMPONENT_TARGET} + target_compile_definitions(${COMPONENT_TARGET} PRIVATE ENABLE_NVIDIA ) endif() diff --git a/components/virtual-greenscreen/CMakeLists.txt b/components/virtual-greenscreen/CMakeLists.txt index 97c37ff1..08ca26a6 100644 --- a/components/virtual-greenscreen/CMakeLists.txt +++ b/components/virtual-greenscreen/CMakeLists.txt @@ -16,7 +16,7 @@ function(streamfx_virtual_greenscreen_resolver) #- NVIDIA streamfx_enabled_component("NVIDIA" T_CHECK) if(T_CHECK) - target_compile_definitions(${COMPONENT_TARGET} + target_compile_definitions(${COMPONENT_TARGET} PRIVATE ENABLE_NVIDIA ) endif()