Fixes files directly in the data directory breaking the cmake project generation.
@PatTheMav suggested this fix, which also brings this function in line with the one used in obs-studio. The template may get rewritten again at some point, but until then I think it's useful to fix the problem.
Motivation and Context
Having a file directly in the data directory would break the cmake project generation:
CMake Error at cmake/ObsPluginHelpers.cmake:469 (string):
string sub-command REPLACE requires at least four arguments.
Call Stack (most recent call first):
cmake/ObsPluginHelpers.cmake:456 (install_bundle_resources)
CMakeLists.txt:95 (setup_plugin_target)
How Has This Been Tested?
Tested that this fix works with a plugin I made where I ran into the problem.
Types of changes
Bug fix (non-breaking change which fixes an issue)
Description
Fixes files directly in the data directory breaking the cmake project generation. @PatTheMav suggested this fix, which also brings this function in line with the one used in obs-studio. The template may get rewritten again at some point, but until then I think it's useful to fix the problem.
Motivation and Context
Having a file directly in the
data
directory would break the cmake project generation:How Has This Been Tested?
Tested that this fix works with a plugin I made where I ran into the problem.
Types of changes
Checklist: