Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build using CMake #127

Closed
matthieularere-msq opened this issue Sep 17, 2024 · 1 comment
Closed

Can't build using CMake #127

matthieularere-msq opened this issue Sep 17, 2024 · 1 comment

Comments

@matthieularere-msq
Copy link

Operating System Info

Other

Other OS

Almalinux 9.4

OBS Studio Version

Other

OBS Studio Version (Other)

30.2.2-238

OBS Studio Log URL

none

OBS Studio Crash Log URL

No response

Expected Behavior

CMake to build successfully

Current Behavior

CMake Error at plugins/source-switcher/CMakeLists.txt:76 (setup_plugin_target):
  Unknown CMake command "setup_plugin_target".

Steps to Reproduce

1.build obs from sources
2.
3.
...

Anything else we should know?

I am trying to add this plugin to my obs build but CMAKE failed because of that last line. I am absolutety unfamilliar with coding obs plugins so I have no idea what to replace it with

@RytoEX
Copy link
Member

RytoEX commented Jan 17, 2025

cmake/ObsPluginHelpers.cmake and setup_plugin_target were removed in b77a072. Plugins based on versions of obs-plugintemplate since then are expected to explicitly set up the plugin target:

target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/plugin-main.c)

set_target_properties_plugin(${CMAKE_PROJECT_NAME} PROPERTIES OUTPUT_NAME ${_name})

See: b77a072#diff-1e7de1ae2d059d21e1dd75d5812d5a34b0222cef273b7c3a2af62eb747f9d20aL92-R39

@RytoEX RytoEX closed this as completed Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants