cmake等效app_allow_missing_deps
我将一个Android项目从ndk
移至cmake
。 在application.mk
中,我们设置了以下标志:
APP_ALLOW_MISSING_DEPS := true
但是我找不到等效的cmake
标志。可以从CMAKE参数设置吗?
I am moving an Android project from ndk
to CMake
.
In Application.mk
we set following flag:
APP_ALLOW_MISSING_DEPS := true
But I couldn't find equivalent cmake
flag for this. Can this be set from cmake arguments?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您在NDK构建中需要此标志,则表示您的android.mk是错误的。该标志告诉NDK-build忽略构建脚本中的垃圾。它使未知的依赖性与空格一样有意义。通过从android.mk中删除未知dep的用途来实现相同的行为。 NDK-Build在警告中告诉您这一点:
If you need this flag in ndk-build it means your Android.mk is wrong. That flag tells ndk-build to ignore garbage in your build script. It makes unknown dependencies exactly as meaningful as whitespace. The same behavior is achieved by removing the uses of the unknown deps from your Android.mk. ndk-build tells you this in the warning: