From aae47d750ec5af5bff53b7bfa0abd5f52a211c3a Mon Sep 17 00:00:00 2001 From: loki Date: Fri, 17 Jan 2020 16:23:20 +0100 Subject: [PATCH] Fix linking errors compiling on Ubuntu/Debian --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cfcfb36e..87ee070a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,6 @@ add_subdirectory(moonlight-common-c/enet) find_package(Threads REQUIRED) find_package(OpenSSL REQUIRED) find_package(FFmpeg REQUIRED) -find_package(Boost COMPONENTS log filesystem REQUIRED) if(WIN32) set(PLATFORM_TARGET_FILES @@ -26,6 +25,7 @@ if(WIN32) windowsapp d3d11 dxgi) else() + set(Boost_USE_STATIC_LIBS ON) find_package(X11 REQUIRED) set(PLATFORM_TARGET_FILES sunshine/platform/linux.cpp @@ -47,6 +47,9 @@ else() ${X11_INCLUDE_DIR} /usr/include/libevdev-1.0) endif() + +find_package(Boost COMPONENTS log filesystem REQUIRED) + set(SUNSHINE_TARGET_FILES moonlight-common-c/reedsolomon/rs.c moonlight-common-c/reedsolomon/rs.h