QTfrontend/CMakeLists.txt
changeset 8279 c03d64969112
parent 8223 14d9a3c33650
child 8283 af97cdbb7713
--- a/QTfrontend/CMakeLists.txt	Sat Dec 08 20:49:43 2012 -0500
+++ b/QTfrontend/CMakeLists.txt	Sun Dec 09 16:00:06 2012 +0100
@@ -142,9 +142,14 @@
 
 
 if(APPLE OR CROSSAPPLE)
-    set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m)
-    set(HW_LINK_LIBS IOKit ${HW_LINK_LIBS})
-
+    find_library(iokit_framework NAMES IOKit)
+    set(HW_LINK_LIBS ${iokit_framework} ${HW_LINK_LIBS})
+    set(hwfr_src ${hwfr_src} CocoaInitializer.mm
+                             InstallController.cpp
+                             M3Panel.mm
+                             M3InstallController.m
+                             NSWorkspace_RBAdditions.m
+                             )
     if(NOT NOAUTOUPDATE)
         find_package(Sparkle)
         if(SPARKLE_FOUND)