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
streamfx_enabled_component("NVIDIA" T_CHECK)
if(T_CHECK)
target_compile_definitions(${COMPONENT_TARGET}
target_compile_definitions(${COMPONENT_TARGET} PRIVATE
PRIVATE ENABLE_NVIDIA
)
endif()

View File

@ -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()

View File

@ -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()

View File

@ -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()