Skip to content

Commit

Permalink
Revert "#340 linux: path to obs plugins libraries"
Browse files Browse the repository at this point in the history
This reverts commit ad280c8.
  • Loading branch information
ludocosmo committed Apr 5, 2022
1 parent 76d5004 commit 4c541dd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions cmake/Modules/ObsHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -468,9 +468,16 @@ function(install_obs_plugin target)
set_target_properties(${target} PROPERTIES
PREFIX "")

install(TARGETS ${target}
LIBRARY DESTINATION "${OBS_PLUGIN_DESTINATION}"
RUNTIME DESTINATION "${OBS_PLUGIN_DESTINATION}")
if(UNIX AND NOT APPLE)
# note ludo #340 Linux path to obs plugins libraries
install(TARGETS ${target}
LIBRARY DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/obs-plugins"
RUNTIME DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}/obs-plugins")
else()
install(TARGETS ${target}
LIBRARY DESTINATION "${OBS_PLUGIN_DESTINATION}"
RUNTIME DESTINATION "${OBS_PLUGIN_DESTINATION}")
endif()
add_custom_command(TARGET ${target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy
"$<TARGET_FILE:${target}>"
Expand Down

0 comments on commit 4c541dd

Please sign in to comment.