summaryrefslogtreecommitdiffstats
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorgregory guy <gregory-tde@laposte.net>2021-12-02 13:11:34 +0100
committerSlávek Banko <slavek.banko@axis.cz>2021-12-14 11:45:01 +0100
commit8b408227ee9912df6051a08f3f64f76918f02222 (patch)
tree2ef524be0bc6a8c2530743e06fe89ee6b12438d8 /ConfigureChecks.cmake
parentc49da9f36fd39f7c2817d29c7fea4129e3a18b87 (diff)
downloadtdeedu-8b408227ee9912df6051a08f3f64f76918f02222.tar.gz
tdeedu-8b408227ee9912df6051a08f3f64f76918f02222.zip
fix FTBFS when aRts support is not available from tdelibs.
Signed-off-by: gregory guy <gregory-tde@laposte.net> Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit a6b2fc4fd2f1fc67df20d015771031212072eb89)
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake17
1 files changed, 7 insertions, 10 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index a2d6593a..0e0d3958 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -35,19 +35,16 @@ if( BUILD_DOC AND BUILD_KIG )
endif( )
-##### check for arts
+##### check for arts support
if( WITH_ARTS )
- pkg_search_module( ARTS arts )
- if( NOT ARTS_FOUND )
- tde_message_fatal( "aRts is requested but was not found on your system" )
- endif( NOT ARTS_FOUND )
- set( WITHOUT_ARTS false )
-endif( WITH_ARTS )
-
-if( NOT WITH_ARTS )
+ if( NOT TARGET artskde-shared )
+ tde_message_fatal( "aRts support through tdelibs is requested but was not found on your system" )
+ endif()
+ set( ARTSKDE_LIBRARIES artskde-shared )
+ else()
set( WITHOUT_ARTS 1 )
-endif( NOT WITH_ARTS )
+endif()
##### check for boost