From 3677708d3e8a9a9ff90dd987944e24abca6cf404 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Wed, 14 Jun 2017 11:33:42 -0400 Subject: [PATCH] PartitionModule: look for atasmart and blkid, to avoid link-time failure. This just puts a warning in the cmake log, but will help diagnose situations where libatasmart.so.4 is installed, but libatasmart.so is not -- in which case -latasmart fails. --- src/modules/partition/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/modules/partition/CMakeLists.txt b/src/modules/partition/CMakeLists.txt index 4dca94bd6..ea31cca86 100644 --- a/src/modules/partition/CMakeLists.txt +++ b/src/modules/partition/CMakeLists.txt @@ -11,6 +11,15 @@ find_package( KF5 REQUIRED CoreAddons ) find_package( KF5 REQUIRED Config I18n IconThemes KIO Service ) find_package( KPMcore 3.0.3 REQUIRED ) +find_library( atasmart_LIB atasmart ) +find_library( blkid_LIB blkid ) +if( NOT atasmart_LIB ) + message( WARNING "atasmart library not found." ) +endif() +if( NOT blkid_LIB ) + message( WARNING "blkid library not found." ) +endif() + add_subdirectory( tests )