diff --git a/CMakeLists.txt b/CMakeLists.txt index 49363f3..5032780 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,7 +115,9 @@ find_package(Qt5 REQUIRED COMPONENTS Widgets ${QT_PREFIX_HINT}) if (APPLE) # Umbrella framework for everything GUI-related find_library(COCOA_LIBRARY Cocoa) - set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${IOKIT_LIBRARY} ${COREVIDEO_LIBRARY}) + # For qdevicewatcher + find_library(DISK_ARBITRATION_LIBRARY DiskArbitration) + set(PLATFORM_LIBRARIES ${COCOA_LIBRARY} ${DISK_ARBITRATION_LIBRARY}) elseif (WIN32) # WSAPoll and SHGetKnownFolderPath (AppData/Roaming) didn't exist before WinNT 6.x (Vista) add_definitions(-D_WIN32_WINNT=0x0600 -DWINVER=0x0600)