obs-studio icon indicating copy to clipboard operation
obs-studio copied to clipboard

cmake: Forward extra args in obs_status to message

Open computerquip opened this issue 2 years ago • 6 comments

Description

Forwards extra arguments given to obs_status to message who will then concatenate them together.

Motivation and Context

So far, I see this only making a difference in exactly one place: https://github.com/obsproject/obs-studio/blob/510f0116a62c12ea6c3812bb88a672ebbebef6a6/cmake/Modules/CompilerConfig.cmake#L48-L51

The "Please download the most recent Windows 10 SDK in order to compile." line is missing from the output since it's a third argument.

Alternatively, I could just fix that one place. I have no preference.

How Has This Been Tested?

I've run CMake in way that would trigger that message so it displays the correct text. It gives the output:

CMake Error at cmake/Modules/ObsHelpers.cmake:446 (message):
  OBS: OBS requires Windows 10 SDK version 10.0.20348.0 and above to compile.

  Please download the most recent Windows 10 SDK in order to compile.

which appears to be correct.

Other messages haven't changed at all.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • [x] My code has been run through clang-format.
  • [x] I have read the contributing document.
  • [x] My code is not on the master branch.
  • [x] The code has been tested.
  • [x] All commit messages are properly formatted and commits squashed where appropriate.
  • [x] I have included updates to all appropriate documentation.

computerquip avatar Nov 23 '22 00:11 computerquip

The observation is correct, seems to me like a better fix would remove the text parameter and use ARGN entirely though.

PatTheMav avatar Dec 06 '22 19:12 PatTheMav

The observation is correct, seems to me like a better fix would remove the text parameter and use ARGN entirely though.

Circling back around to this item. Let's do this, barring any major issues.

RytoEX avatar Feb 15 '23 16:02 RytoEX

Sorry, this somehow kept slipping by me, I'll clean it up soon™.

computerquip avatar Sep 25 '23 01:09 computerquip

Probably not required as that call was used in legacy CMake only and we’re gonna move Linux off that soon as well.

PatTheMav avatar Sep 25 '23 12:09 PatTheMav

@PatTheMav Do we still want this?

RytoEX avatar Apr 17 '24 23:04 RytoEX

@PatTheMav Do we still want this?

IMO the legacy build path is in "maintenance mode" now, so we accept bugfixes but no new features.

PatTheMav avatar Apr 17 '24 23:04 PatTheMav