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.
This commit is contained in:
Adriaan de Groot 2017-06-14 11:33:42 -04:00 committed by Philip
parent 839a34dacf
commit 2dbcee346d

View File

@ -11,6 +11,15 @@ find_package( KF5 REQUIRED CoreAddons )
find_package( KF5 REQUIRED Config I18n IconThemes KIO Service ) find_package( KF5 REQUIRED Config I18n IconThemes KIO Service )
find_package( KPMcore 3.0.3 REQUIRED ) 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 ) add_subdirectory( tests )