summaryrefslogtreecommitdiffstats
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-13 17:20:39 +0100
commita6b2fc4fd2f1fc67df20d015771031212072eb89 (patch)
tree2cc83011c37e3afb390439c1ab3113f5bdb64f75
parentbd2c79033d036f8102c247d3550ce4e3154c73a4 (diff)
downloadtdeedu-a6b2fc4fd2f1fc67df20d015771031212072eb89.tar.gz
tdeedu-a6b2fc4fd2f1fc67df20d015771031212072eb89.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>
-rw-r--r--ConfigureChecks.cmake17
-rw-r--r--blinken/src/CMakeLists.txt2
-rw-r--r--kanagram/src/CMakeLists.txt2
3 files changed, 9 insertions, 12 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
diff --git a/blinken/src/CMakeLists.txt b/blinken/src/CMakeLists.txt
index b0d1e1f4..d8776304 100644
--- a/blinken/src/CMakeLists.txt
+++ b/blinken/src/CMakeLists.txt
@@ -32,7 +32,7 @@ tde_add_executable( blinken AUTOMOC
tdecore-shared
tdeui-shared
tdeio-shared
- artskde-shared
+ ${ARTSKDE_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)
diff --git a/kanagram/src/CMakeLists.txt b/kanagram/src/CMakeLists.txt
index 7686af03..a6d28d4d 100644
--- a/kanagram/src/CMakeLists.txt
+++ b/kanagram/src/CMakeLists.txt
@@ -44,7 +44,7 @@ tde_add_executable( kanagram AUTOMOC
tdeui-shared
tdeio-shared
tdenewstuff-shared
- artskde-shared
+ ${ARTSKDE_LIBRARIES}
DESTINATION ${BIN_INSTALL_DIR}
)