obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
781 stars 222 forks source link

cmake: Fix handling of debug wrapper libraries #362

Closed PatTheMav closed 2 years ago

PatTheMav commented 2 years ago

Description

Fix and simplify handling of CEF wrapper libraries in debug build configuration.

Motivation and Context

Specifying separate targets for debug configuration (as well as using "debug" and "optimized" keywords) is legacy behavior.

The correct way is to specify _DEBUG variants of the imported target properties, which CMake will pick up automatically if the project is built with debug configuration.

This commit forward-fixes the update on obs-studio, by still using the legacy behavior if the legacy target is present.

How Has This Been Tested?

Types of changes

Checklist: