Skip to content

Commit

Permalink
cmake: Set minimum CEF version to 95
Browse files Browse the repository at this point in the history
We know that our minimum supported CEF version is 95, and we know that
OBS (or obs-browser) will fail to build against anything older. Specify
the minimum version required in CMake so this becomes a configure
failure instead of a build failure.
  • Loading branch information
RytoEX committed Apr 2, 2024
1 parent 996b5a7 commit b4f724a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if(NOT ENABLE_BROWSER)
return()
endif()

find_package(CEF REQUIRED)
find_package(CEF REQUIRED 95)
find_package(nlohmann_json REQUIRED)

add_library(obs-browser MODULE)
Expand Down
2 changes: 1 addition & 1 deletion cmake/legacy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ option(ENABLE_BROWSER_QT_LOOP "Enable running CEF on the main UI thread alongsid

mark_as_advanced(ENABLE_BROWSER_LEGACY ENABLE_BROWSER_SHARED_TEXTURE ENABLE_BROWSER_PANELS ENABLE_BROWSER_QT_LOOP)

find_package(CEF REQUIRED)
find_package(CEF REQUIRED 95)

if(NOT TARGET CEF::Wrapper)
message(
Expand Down

0 comments on commit b4f724a

Please sign in to comment.