From 8775f7e47dd473e49ecdd126f427f42f7567673d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 4 Jul 2020 18:28:34 +0200 Subject: [PATCH] Fix FTBFS due to missing linked libraries. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- ConfigureChecks.cmake | 2 ++ src/sources/CMakeLists.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index f327430..ab62c41 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -32,6 +32,7 @@ if( WITH_NVCONTROL ) find_path( NVCONTROL_INCLUDE_DIR NAMES "NVCtrlLib.h" PATH_SUFFIXES "NVCtrl" ) find_library( NVCONTROL_LIBRARIES NAMES XNVCtrl ) + pkg_search_module( XEXT xext ) if( NVCONTROL_LIBRARIES AND NVCONTROL_INCLUDE_DIR ) set( NVCONTROL_FOUND true) @@ -42,4 +43,5 @@ if( WITH_NVCONTROL ) else() tde_message_fatal( "NVidia support has been requested but or libXNVCtrl were not found on your system" ) endif( NVCONTROL_FOUND ) + endif( WITH_NVCONTROL ) diff --git a/src/sources/CMakeLists.txt b/src/sources/CMakeLists.txt index 3b407bd..b83baea 100644 --- a/src/sources/CMakeLists.txt +++ b/src/sources/CMakeLists.txt @@ -43,4 +43,5 @@ tde_add_library( sources STATIC_PIC AUTOMOC LINK tdecore-shared ${NVCONTROL_LIBRARIES} + ${XEXT_LIBRARIES} )