Fix incorrect target_compile_definitions calls

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-09-30 07:19:52 +02:00 committed by Xaymar
parent b9b4dba686
commit 4982a7900e
4 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@ function(streamfx_auto_framing_resolver)
#- NVIDIA #- NVIDIA
streamfx_enabled_component("NVIDIA" T_CHECK) streamfx_enabled_component("NVIDIA" T_CHECK)
if(T_CHECK) if(T_CHECK)
target_compile_definitions(${COMPONENT_TARGET} target_compile_definitions(${COMPONENT_TARGET} PRIVATE
PRIVATE ENABLE_NVIDIA PRIVATE ENABLE_NVIDIA
) )
endif() endif()

View file

@ -16,7 +16,7 @@ function(streamfx_denoising_resolver)
#- NVIDIA #- NVIDIA
streamfx_enabled_component("NVIDIA" T_CHECK) streamfx_enabled_component("NVIDIA" T_CHECK)
if(T_CHECK) if(T_CHECK)
target_compile_definitions(${COMPONENT_TARGET} target_compile_definitions(${COMPONENT_TARGET} PRIVATE
ENABLE_NVIDIA ENABLE_NVIDIA
) )
endif() endif()

View file

@ -16,7 +16,7 @@ function(streamfx_upscaling_resolver)
#- NVIDIA #- NVIDIA
streamfx_enabled_component("NVIDIA" T_CHECK) streamfx_enabled_component("NVIDIA" T_CHECK)
if(T_CHECK) if(T_CHECK)
target_compile_definitions(${COMPONENT_TARGET} target_compile_definitions(${COMPONENT_TARGET} PRIVATE
ENABLE_NVIDIA ENABLE_NVIDIA
) )
endif() endif()

View file

@ -16,7 +16,7 @@ function(streamfx_virtual_greenscreen_resolver)
#- NVIDIA #- NVIDIA
streamfx_enabled_component("NVIDIA" T_CHECK) streamfx_enabled_component("NVIDIA" T_CHECK)
if(T_CHECK) if(T_CHECK)
target_compile_definitions(${COMPONENT_TARGET} target_compile_definitions(${COMPONENT_TARGET} PRIVATE
ENABLE_NVIDIA ENABLE_NVIDIA
) )
endif() endif()