cmake: Fix native obs-studio builds

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-01-14 00:41:09 +01:00
parent f4f2c31495
commit 52f789436d
1 changed files with 26 additions and 23 deletions

View File

@ -238,17 +238,19 @@ elseif(${PropertyPrefix}OBS_REFERENCE)
include("${OBS_STUDIO_DIR}/cmake/external/FindLibobs.cmake")
elseif(${PropertyPrefix}OBS_DOWNLOAD)
include("${libobs_SOURCE_DIR}/cmake/LibObs/LibObsConfig.cmake")
else()
message(CRITICAL "Impossible case reached, verify system stability.")
return()
endif()
# Load FFmpeg
if(NOT ${PropertyPrefix}OBS_NATIVE)
find_path(
FFmpegPath "libavcodec/avcodec.h"
HINTS
${OBS_DEPENDENCIES_DIR}
${obsdeps_SOURCE_DIR}
${DepsPath}
${DepsPath32}
${DepsPath64}
PATHS
/usr/include
/usr/local/include
@ -264,6 +266,7 @@ find_path(
bin
include
)
endif()
find_package(FFmpeg REQUIRED COMPONENTS avutil avcodec swscale)
################################################################################