Skip to content

Commit

Permalink
cmake: Update supported CMake version range to 3.28 and 3.30
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav authored and RytoEX committed Sep 13, 2024
1 parent 7a35d7c commit 6c59080
Show file tree
Hide file tree
Showing 98 changed files with 129 additions and 144 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCOPE)

project(obs-studio VERSION ${OBS_VERSION_CANONICAL})

if(CMAKE_HOST_SYSTEM_NAME MATCHES "Windows")
include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/windows/architecture.cmake")
if(NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
if(NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_VS_PLATFORM_NAME)
return()
endif()
endif()
Expand Down
6 changes: 3 additions & 3 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 3,
"version": 8,
"cmakeMinimumRequired": {
"major": 3,
"minor": 22,
"minor": 28,
"patch": 0
},
"configurePresets": [
Expand Down Expand Up @@ -98,7 +98,7 @@
"lhs": "${hostSystemName}",
"rhs": "Windows"
},
"architecture": "x64",
"architecture": "x64,version=10.0.20348",
"binaryDir": "${sourceDir}/build_x64",
"generator": "Visual Studio 17 2022",
"cacheVariables": {
Expand Down
2 changes: 1 addition & 1 deletion UI/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_subdirectory(obs-frontend-api)

Expand Down
2 changes: 1 addition & 1 deletion UI/frontend-plugins/aja-output-ui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

if(NOT ENABLE_AJA)
target_disable(aja-output-ui)
Expand Down
2 changes: 1 addition & 1 deletion UI/frontend-plugins/decklink-captions/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

if(NOT ENABLE_DECKLINK)
target_disable(decklink-captions)
Expand Down
2 changes: 1 addition & 1 deletion UI/frontend-plugins/decklink-output-ui/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

if(NOT ENABLE_DECKLINK)
target_disable(decklink-output-ui)
Expand Down
2 changes: 1 addition & 1 deletion UI/frontend-plugins/frontend-tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

find_package(Qt6 REQUIRED Widgets)

Expand Down
2 changes: 1 addition & 1 deletion UI/obs-frontend-api/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(obs-frontend-api SHARED)
add_library(OBS::frontend-api ALIAS obs-frontend-api)
Expand Down
2 changes: 1 addition & 1 deletion UI/win-update/updater/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

find_package(zstd)
find_package(nlohmann_json 3 REQUIRED)
Expand Down
3 changes: 0 additions & 3 deletions cmake/common/bootstrap.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ if("${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
file(REMOVE_RECURSE "${CMAKE_CURRENT_SOURCE_DIR}/CMakeCache.txt" "${CMAKE_CURRENT_SOURCE_DIR}/CMakeFiles")
endif()

# Use folders for source file organization with IDE generators (Visual Studio/Xcode)
set_property(GLOBAL PROPERTY USE_FOLDERS TRUE)

# Set default global project variables
set(OBS_COMPANY_NAME "OBS Project")
set(OBS_PRODUCT_NAME "OBS Studio")
Expand Down
4 changes: 3 additions & 1 deletion cmake/common/buildspec_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function(_check_deps_version version)
)
list(REMOVE_ITEM CMAKE_PREFIX_PATH "${path}")
list(APPEND CMAKE_PREFIX_PATH "${path}")
set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} PARENT_SCOPE)

continue()
else()
message(
Expand All @@ -42,6 +42,8 @@ function(_check_deps_version version)
endif()
endif()
endforeach()

return(PROPAGATE found CMAKE_PREFIX_PATH)
endfunction()

# _check_dependencies: Fetch and extract pre-built OBS build dependencies
Expand Down
6 changes: 1 addition & 5 deletions cmake/common/compiler_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ option(OBS_COMPILE_DEPRECATION_AS_WARNING "Downgrade deprecation warnings to act
mark_as_advanced(OBS_COMPILE_DEPRECATION_AS_WARNING)

# Set C and C++ language standards to C17 and C++17
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.21)
set(CMAKE_C_STANDARD 17)
else()
set(CMAKE_C_STANDARD 11)
endif()
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED TRUE)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
Expand Down
15 changes: 9 additions & 6 deletions cmake/common/helpers_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -203,14 +203,14 @@ function(find_dependencies)
endforeach()

if(NOT is_root)
set(found_libraries ${found_libraries} PARENT_SCOPE)
# Exit recursive branch
return()
return(PROPAGATE found_libraries)
endif()

list(REMOVE_DUPLICATES found_libraries)
list(APPEND ${var_FOUND_VAR} ${found_libraries})
set(${var_FOUND_VAR} ${${var_FOUND_VAR}} PARENT_SCOPE)

return(PROPAGATE ${var_FOUND_VAR})
endfunction()

# find_qt_plugins: Find and add Qt plugin libraries associated with Qt component to target
Expand Down Expand Up @@ -278,7 +278,8 @@ function(find_qt_plugins)
endforeach()
endif()

set(${var_FOUND_VAR} ${plugins_list} PARENT_SCOPE)
set(${var_FOUND_VAR} ${plugins_list})
return(PROPAGATE ${var_FOUND_VAR})
endfunction()

# target_export: Helper function to export target as CMake package
Expand Down Expand Up @@ -432,7 +433,9 @@ function(check_uuid uuid_string return_value)
set(valid_uuid FALSE)
endif()
message(DEBUG "UUID ${uuid_string} valid: ${valid_uuid}")
set(${return_value} ${valid_uuid} PARENT_SCOPE)

set(${return_value} ${valid_uuid})
return(PROPAGATE ${return_value})
endfunction()

# add_obs_plugin: Add plugin subdirectory if host platform is in specified list of supported platforms and architectures
Expand Down Expand Up @@ -465,7 +468,7 @@ function(add_obs_plugin target)
else()
foreach(architecture IN LISTS _AOP_ARCHITECTURES)
if(OS_WINDOWS)
if("${architecture}" STREQUAL CMAKE_GENERATOR_PLATFORM)
if("${architecture}" STREQUAL CMAKE_VS_PLATFORM_NAME)
set(found_architecture TRUE)
endif()
elseif(OS_MACOS)
Expand Down
13 changes: 7 additions & 6 deletions cmake/windows/architecture.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ include_guard(GLOBAL)
include(compilerconfig)

if(NOT DEFINED OBS_PARENT_ARCHITECTURE)
if(CMAKE_GENERATOR_PLATFORM MATCHES "(Win32|x64)")
set(OBS_PARENT_ARCHITECTURE ${CMAKE_GENERATOR_PLATFORM})
if(CMAKE_VS_PLATFORM_NAME MATCHES "(Win32|x64)")
set(OBS_PARENT_ARCHITECTURE ${CMAKE_VS_PLATFORM_NAME})
else()
message(FATAL_ERROR "Unsupported generator platform for Windows builds: ${CMAKE_GENERATOR_PLATFORM}!")
message(FATAL_ERROR "Unsupported generator platform for Windows builds: ${CMAKE_VS_PLATFORM_NAME}!")
endif()
endif()

if(OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
if(OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_VS_PLATFORM_NAME)
if(OBS_PARENT_ARCHITECTURE STREQUAL x64)
execute_process(
COMMAND
"${CMAKE_COMMAND}" -S ${CMAKE_CURRENT_SOURCE_DIR} -B ${CMAKE_SOURCE_DIR}/build_x86 -A Win32 -G
"${CMAKE_GENERATOR}" -DCMAKE_SYSTEM_VERSION:STRING='${CMAKE_SYSTEM_VERSION}' -DOBS_CMAKE_VERSION:STRING=3.0.0
"${CMAKE_COMMAND}" -S ${CMAKE_CURRENT_SOURCE_DIR} -B ${CMAKE_SOURCE_DIR}/build_x86 -A
"Win32,version=${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}" -G "${CMAKE_GENERATOR}"
-DCMAKE_SYSTEM_VERSION:STRING='${CMAKE_SYSTEM_VERSION}' -DOBS_CMAKE_VERSION:STRING=3.0.0
-DVIRTUALCAM_GUID:STRING=${VIRTUALCAM_GUID} -DCMAKE_MESSAGE_LOG_LEVEL:STRING=${CMAKE_MESSAGE_LOG_LEVEL}
-DENABLE_CCACHE:BOOL=${ENABLE_CCACHE} -DOBS_PARENT_ARCHITECTURE:STRING=x64
RESULT_VARIABLE _process_result
Expand Down
4 changes: 2 additions & 2 deletions cmake/windows/buildspec.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ function(_check_dependencies_windows)
set(cef_filename "cef_binary_VERSION_windows_ARCH_REVISION.zip")
set(cef_destination "cef_binary_VERSION_windows_ARCH")

if(CMAKE_GENERATOR_PLATFORM STREQUAL Win32)
if(CMAKE_VS_PLATFORM_NAME STREQUAL Win32)
set(arch x86)
set(dependencies_list prebuilt)
else()
string(TOLOWER "${CMAKE_GENERATOR_PLATFORM}" arch)
string(TOLOWER "${CMAKE_VS_PLATFORM_NAME}" arch)
set(dependencies_list prebuilt qt6 cef)
endif()
set(platform windows-${arch})
Expand Down
2 changes: 1 addition & 1 deletion cmake/windows/cpackconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include(cpackconfig_common)
# Add GPLv2 license file to CPack
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/UI/data/license/gplv2.txt")
set(CPACK_PACKAGE_VERSION "${OBS_VERSION_CANONICAL}")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-windows-${CMAKE_GENERATOR_PLATFORM}")
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-windows-${CMAKE_VS_PLATFORM_NAME}")
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY FALSE)
set(CPACK_GENERATOR ZIP)
set(CPACK_THREADS 0)
Expand Down
12 changes: 0 additions & 12 deletions cmake/windows/defaults.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,3 @@ set(CMAKE_FIND_PACKAGE_TARGETS_GLOBAL TRUE)

include(buildspec)
include(cpackconfig)

if(CMAKE_GENERATOR_PLATFORM STREQUAL x64)
execute_process(
COMMAND
"${CMAKE_COMMAND}" -S ${CMAKE_CURRENT_SOURCE_DIR} -B ${CMAKE_SOURCE_DIR}/build_x86 -A Win32 -G
"${CMAKE_GENERATOR}" -DCMAKE_SYSTEM_VERSION:STRING='${CMAKE_SYSTEM_VERSION}' -DOBS_CMAKE_VERSION:STRING=3.0.0
-DVIRTUALCAM_GUID:STRING=${VIRTUALCAM_GUID} -DCMAKE_MESSAGE_LOG_LEVEL=${CMAKE_MESSAGE_LOG_LEVEL}
-DENABLE_CCACHE=${ENABLE_CCACHE}
RESULT_VARIABLE _process_result
COMMAND_ERROR_IS_FATAL ANY
)
endif()
2 changes: 1 addition & 1 deletion deps/blake2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(blake2 OBJECT)
add_library(OBS::blake2 ALIAS blake2)
Expand Down
2 changes: 1 addition & 1 deletion deps/glad/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

find_package(OpenGL REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion deps/json11/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(json11 OBJECT)
add_library(OBS::json11 ALIAS json11)
Expand Down
2 changes: 1 addition & 1 deletion deps/libcaption/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(caption STATIC EXCLUDE_FROM_ALL)
add_library(OBS::caption ALIAS caption)
Expand Down
2 changes: 1 addition & 1 deletion deps/w32-pthreads/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(w32-pthreads SHARED EXCLUDE_FROM_ALL)
add_library(OBS::w32-pthreads ALIAS w32-pthreads)
Expand Down
2 changes: 1 addition & 1 deletion libobs-d3d11/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(libobs-d3d11 MODULE)
add_library(OBS::libobs-d3d11 ALIAS libobs-d3d11)
Expand Down
2 changes: 1 addition & 1 deletion libobs-opengl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(libobs-opengl SHARED)
add_library(OBS::libobs-opengl ALIAS libobs-opengl)
Expand Down
2 changes: 1 addition & 1 deletion libobs-winrt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(libobs-winrt-headers INTERFACE)
add_library(OBS::winrt-headers ALIAS libobs-winrt-headers)
Expand Down
4 changes: 2 additions & 2 deletions libobs/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

include(cmake/obs-version.cmake)

if(OS_WINDOWS AND NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
if(OS_WINDOWS AND NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_VS_PLATFORM_NAME)
include(cmake/os-windows.cmake)
return()
endif()
Expand Down
2 changes: 1 addition & 1 deletion libobs/cmake/os-windows.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if(NOT TARGET OBS::w32-pthreads)
add_subdirectory("${CMAKE_SOURCE_DIR}/deps/w32-pthreads" "${CMAKE_BINARY_DIR}/deps/w32-pthreads")
endif()

if(NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_GENERATOR_PLATFORM)
if(NOT OBS_PARENT_ARCHITECTURE STREQUAL CMAKE_VS_PLATFORM_NAME)
return()
endif()

Expand Down
4 changes: 2 additions & 2 deletions plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_PLUGINS "Enable building OBS plugins" ON)

Expand All @@ -10,7 +10,7 @@ endif()
set_property(GLOBAL APPEND PROPERTY OBS_FEATURES_ENABLED "Plugin Support")

macro(check_obs_browser)
if((OS_WINDOWS AND CMAKE_GENERATOR_PLATFORM MATCHES "(Win32|x64)") OR OS_MACOS OR OS_LINUX)
if((OS_WINDOWS AND CMAKE_VS_PLATFORM_NAME MATCHES "(Win32|x64)") OR OS_MACOS OR OS_LINUX)
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/obs-browser/CMakeLists.txt")
message(FATAL_ERROR "Required submodule 'obs-browser' not available.")
else()
Expand Down
2 changes: 1 addition & 1 deletion plugins/aja/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_AJA "Build OBS with aja support" ON)

Expand Down
2 changes: 1 addition & 1 deletion plugins/coreaudio-encoder/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

if(OS_WINDOWS)
option(ENABLE_COREAUDIO_ENCODER "Enable building with CoreAudio encoder (Windows)" ON)
Expand Down
2 changes: 1 addition & 1 deletion plugins/decklink/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_DECKLINK "Build OBS with Decklink support" ON)
if(NOT ENABLE_DECKLINK)
Expand Down
2 changes: 1 addition & 1 deletion plugins/image-source/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(image-source MODULE)
add_library(OBS::image-source ALIAS image-source)
Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-alsa/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_ALSA "Build OBS with ALSA support" ON)

Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-capture/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

find_package(X11 REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-jack/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_JACK "Build OBS with JACK support" OFF)
if(NOT ENABLE_JACK)
Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-pipewire/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_PIPEWIRE "Enable PipeWire support" ON)
if(NOT ENABLE_PIPEWIRE)
Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-pulseaudio/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

if(NOT ENABLE_PULSEAUDIO)
target_disable(linux-pulseaudio)
Expand Down
2 changes: 1 addition & 1 deletion plugins/linux-v4l2/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.22...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_V4L2 "Build OBS with v4l2 support" ON)
option(ENABLE_UDEV "Build linux-v4l2 with UDEV support" ON)
Expand Down
2 changes: 1 addition & 1 deletion plugins/mac-avcapture/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(mac-avcapture-legacy MODULE)
add_library(OBS::avcapture-legacy ALIAS mac-avcapture-legacy)
Expand Down
2 changes: 1 addition & 1 deletion plugins/mac-avcapture/legacy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(mac-avcapture MODULE)
add_library(OBS::avcapture ALIAS mac-avcapture)
Expand Down
2 changes: 1 addition & 1 deletion plugins/mac-capture/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

add_library(mac-capture MODULE)
add_library(OBS::capture ALIAS mac-capture)
Expand Down
2 changes: 1 addition & 1 deletion plugins/mac-syphon/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.24...3.25)
cmake_minimum_required(VERSION 3.28...3.30)

option(ENABLE_SYPHON "Enable Syphon sharing support" ON)
if(NOT ENABLE_SYPHON)
Expand Down
Loading

0 comments on commit 6c59080

Please sign in to comment.