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:
parent
839a34dacf
commit
2dbcee346d
@ -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 )
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user