diff --git a/CMakeLists.txt b/CMakeLists.txt index 50d81520..92d94de7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,9 +162,14 @@ if(UNIX AND NOT APPLE) obs-frontend-api) file(GLOB locale_files data/locale/*.ini) + execute_process(COMMAND uname -m COMMAND tr -d '\n' OUTPUT_VARIABLE UNAME_MACHINE) install(TARGETS obs-websocket LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/obs-plugins") + # Dirty fix for Ubuntu + install(TARGETS obs-websocket + LIBRARY DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/${UNAME_MACHINE}-linux-gnu/obs-plugins") + install(FILES ${locale_files} DESTINATION "${CMAKE_INSTALL_PREFIX}/share/obs/obs-plugins/obs-websocket/locale") endif()