Update CMakeLists for modern builds #290
Labels
No labels
area/accessibility
area/dependency
Confirmed
Crash Report
Delayed
Design Issue
Duplicate
Feedback required
Good first issue
kind/bug
kind/cleanup
kind/enhancement
platform/linux
platform/macos
platform/windows
priority/high
Question
Request for Comments
Seeking Other Contributors
Seeking Testers
Won't Fix / By Design
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-obsproject/obs-browser!290
Loading…
Reference in a new issue
No description provided.
Delete branch "cmake-overhaul"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Updates CMake build script to coincide with changes in https://github.com/obsproject/obs-studio/pull/4560. Header definitions have been changed in source files appropriately.
Motivation and Context
Updates CMake build scripts last updated 7 years ago and improves build situation on macOS.
How Has This Been Tested?
Types of changes
Checklist:
Same as https://github.com/obsproject/obs-studio/pull/4560, you seem to revert recent CMake changes
@ -1,346 +1,343 @@cmake_minimum_required(VERSION 2.8.12)project(obs-browser)Please don't revert #285
I think you forgot to change the
formatcode.shof this repoGood catch - see my comment here: https://github.com/obsproject/obs-vst/pull/85#issuecomment-856917956
@ -347,0 +88,4 @@if(ENABLE_BROWSER_LEGACY)target_compile_definitions(obs-browser PRIVATE ENABLE_BROWSER_LEGACY)endif()You should maybe add a fatal error when it's not found rather than letting CMake continue.
@ -347,0 +88,4 @@if(ENABLE_BROWSER_LEGACY)target_compile_definitions(obs-browser PRIVATE ENABLE_BROWSER_LEGACY)endif()Added.
@ -1,346 +1,343 @@cmake_minimum_required(VERSION 2.8.12)project(obs-browser)BROWSER_SOURCE_AVAILABLEonly seems to be set and never used. I think we can safely remove it.@dodgepong As this is a companion PR to https://github.com/obsproject/obs-studio/pull/4560, should make sense to add it this PR and https://github.com/obsproject/obs-vst/pull/85 to the OBS 28 project as well.
@ -1,346 +1,343 @@cmake_minimum_required(VERSION 2.8.12)project(obs-browser)I disagree with the lack of additional information provided in this message. Something similar to the old line (using the new variable names) would make it clearer to the user.
@ -1,91 +1,160 @@include(FindPackageHandleStandardArgs)I would vote that because we consider obs-browser to be recommended for core building, this shouldn't be marked as Advanced so that users can more clearly see it pre-populated in CMake-GUI.
@ -1,91 +1,160 @@include(FindPackageHandleStandardArgs)Sounds good, changed it.
@ -1,346 +1,343 @@cmake_minimum_required(VERSION 2.8.12)project(obs-browser)Extended the text accordingly.