fix bundle, link with IOKit

This commit is contained in:
lizzie
2025-11-27 00:52:12 +00:00
parent fb1ecbca49
commit 7fb9d74a18
3 changed files with 9 additions and 53 deletions
+6
View File
@@ -261,4 +261,10 @@ if(ANDROID)
target_link_libraries(common PRIVATE android)
endif()
# IOPS (needed for power state) requires linking to IOKit
if (APPLE)
find_library(IOKIT_LIBRARY IOKit REQUIRED)
target_link_libraries(common PRIVATE ${IOKIT_LIBRARY})
endif()
create_target_directory_groups(common)