瀏覽代碼

common: link libandroid on android

Liam 3 年之前
父節點
當前提交
b19754c73f
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/common/CMakeLists.txt

+ 5 - 0
src/common/CMakeLists.txt

@@ -202,6 +202,11 @@ create_target_directory_groups(common)
 target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile Threads::Threads)
 target_link_libraries(common PRIVATE lz4::lz4 zstd::zstd LLVM::Demangle)
 
+if (ANDROID)
+    # For ASharedMemory_create
+    target_link_libraries(common PRIVATE android)
+endif()
+
 if (YUZU_USE_PRECOMPILED_HEADERS)
     target_precompile_headers(common PRIVATE precompiled_headers.h)
 endif()