diff --git a/CMakeLists.txt b/CMakeLists.txt index e8897f28..8d3c1dae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,9 +168,14 @@ if(UNIX AND NOT APPLE) target_link_libraries(obs-websocket 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()