add X11 to PLATFORM_LIBARIES when found

This commit is contained in:
Morgan Helton 2023-04-10 12:05:33 -05:00 committed by Cameron Gutman
parent 7038c1aeb0
commit 010440dbd3

View File

@ -354,6 +354,7 @@ else()
if(X11_FOUND) if(X11_FOUND)
add_compile_definitions(SUNSHINE_BUILD_X11) add_compile_definitions(SUNSHINE_BUILD_X11)
include_directories(${X11_INCLUDE_DIR}) include_directories(${X11_INCLUDE_DIR})
list(APPEND PLATFORM_LIBRARIES ${X11_LIBRARIES})
list(APPEND PLATFORM_TARGET_FILES src/platform/linux/x11grab.cpp) list(APPEND PLATFORM_TARGET_FILES src/platform/linux/x11grab.cpp)
endif() endif()