提交 8611ebe6 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!26 fix compile error for different cpu due to load libasound.so

Merge pull request !26 from twwang/master
......@@ -57,10 +57,18 @@ add_library(anbox-protobuf
anbox/protobuf/anbox_bridge.proto
anbox/protobuf/anbox_container.proto
anbox/protobuf/google_protobuf_guard.cpp)
target_link_libraries(anbox-protobuf
if(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
target_link_libraries(anbox-protobuf
${PROTOBUF_LITE_LIBRARIES}
/usr/lib/x86_64-linux-gnu/libasound.so
)
else()
target_link_libraries(anbox-protobuf
${PROTOBUF_LITE_LIBRARIES}
/usr/lib/aarch64-linux-gnu/libasound.so
)
)
endif()
set(SOURCES
anbox/android/intent.cpp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册