mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-13 07:15:06 +00:00
cmake: Fix features being enabled on unsupported platforms
This commit is contained in:
parent
be699c643c
commit
01f16e6d1f
1 changed files with 6 additions and 4 deletions
|
@ -505,9 +505,9 @@ function(is_feature_enabled FEATURE OUTPUT)
|
||||||
endif()
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(set_feature_disabled FEATURE DISABLED)
|
macro(set_feature_disabled FEATURE DISABLED)
|
||||||
set(${PREFIX}DISABLE_${FEATURE} ${DISABLED} PARENT_SCOPE)
|
set(${PREFIX}DISABLE_${FEATURE} ${DISABLED} PARENT_SCOPE)
|
||||||
endfunction()
|
endmacro()
|
||||||
|
|
||||||
# Features
|
# Features
|
||||||
function(feature_encoder_ffmpeg RESOLVE)
|
function(feature_encoder_ffmpeg RESOLVE)
|
||||||
|
@ -712,8 +712,9 @@ if(REQUIRE_JSON)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# NVIDIA Augmented Reality SDK (Windows)
|
||||||
set(HAVE_NVIDIA_ARSDK OFF)
|
set(HAVE_NVIDIA_ARSDK OFF)
|
||||||
if(REQUIRE_NVIDIA_ARSDK)
|
if(REQUIRE_NVIDIA_ARSDK AND D_PLATFORM_WINDOWS)
|
||||||
if(EXISTS "${PROJECT_SOURCE_DIR}/third-party/nvidia-arsdk/version.h")
|
if(EXISTS "${PROJECT_SOURCE_DIR}/third-party/nvidia-arsdk/version.h")
|
||||||
set(NVAR_ROOT "${PROJECT_SOURCE_DIR}/third-party/nvidia-arsdk")
|
set(NVAR_ROOT "${PROJECT_SOURCE_DIR}/third-party/nvidia-arsdk")
|
||||||
endif()
|
endif()
|
||||||
|
@ -723,8 +724,9 @@ if(REQUIRE_NVIDIA_ARSDK)
|
||||||
set(HAVE_NVIDIA_ARSDK ${NVAR_FOUND})
|
set(HAVE_NVIDIA_ARSDK ${NVAR_FOUND})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# NVIDIA CUDA (Windows)
|
||||||
set(HAVE_NVIDIA_CUDA OFF)
|
set(HAVE_NVIDIA_CUDA OFF)
|
||||||
if(REQUIRE_NVIDIA_CUDA)
|
if(REQUIRE_NVIDIA_CUDA AND D_PLATFORM_WINDOWS)
|
||||||
set(HAVE_NVIDIA_CUDA ON)
|
set(HAVE_NVIDIA_CUDA ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue