Fix FTBFS due to missing linked libraries.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 4 years ago
parent ec0fb7f93e
commit 8775f7e47d
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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 <NVCtrlLib.h> or libXNVCtrl were not found on your system" )
endif( NVCONTROL_FOUND )
endif( WITH_NVCONTROL )

@ -43,4 +43,5 @@ tde_add_library( sources STATIC_PIC AUTOMOC
LINK
tdecore-shared
${NVCONTROL_LIBRARIES}
${XEXT_LIBRARIES}
)

Loading…
Cancel
Save