[partition] [fsresizer] Fix KPMCore API versions

- tests need the defines as well
 - scandevices API changed with API 3.3.1
This commit is contained in:
Adriaan de Groot 2019-04-12 13:14:13 +02:00
parent c844188907
commit 198acadd23
4 changed files with 5 additions and 3 deletions

View file

@ -107,7 +107,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
bool writableOnly = (which == DeviceType::WritableOnly);
CoreBackend* backend = CoreBackendManager::self()->backend();
#ifdef WITH_KPMCORE4API
#ifdef WITH_KPMCORE331API
DeviceList devices = backend->scanDevices( /* not includeReadOnly, not includeLoopback */ ScanFlag(0) );
#else
DeviceList devices = backend->scanDevices( /* excludeReadOnly */ true );

View file

@ -32,4 +32,5 @@ if( ECM_FOUND AND BUILD_TESTING )
)
set_target_properties( partitionjobtests PROPERTIES AUTOMOC TRUE )
target_compile_definitions( partitionjobtests PRIVATE ${_partition_defs} )
endif()