-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] CMake plugin: creating a target on every call find_package() #128
Labels
bug
Something isn't working
Comments
Thanks for the report. Unsure when I'll be able to find the time, but looks like it should be an easy fix. Will get a release out to fix it as soon as I can. |
DanAlbert
added a commit
to DanAlbert/prefab
that referenced
this issue
Mar 12, 2021
Protects against duplicate definition errors when a package is included multiple times in CMake. No change needed for ndk-build because it handles this internally. Fixes google#128
#131 fixes this. Going to try to bundle it with another fix or two in the next week and will push out a release with them. |
DanAlbert
added a commit
that referenced
this issue
Mar 13, 2021
Protects against duplicate definition errors when a package is included multiple times in CMake. No change needed for ndk-build because it handles this internally. Fixes #128
https://github.com/google/prefab/releases/tag/v1.1.3 ( |
msatranjr
pushed a commit
to msft-mirror-aosp/platform.prebuilts.tools
that referenced
this issue
Feb 8, 2023
Test: presubmit Bug: google/prefab#128 Bug: google/prefab#132 Change-Id: I00ef7bf7a03b9ec5cfeadad06480310303de3934
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
If two packages depend on another package, the build will fail.
or
Call find_package() more than once for the same package
To Reproduce
Steps to reproduce the behavior:
./vcpkg install boost-endian:arm-android boost-endian:arm64-android boost-endian:x86-android boost-endian:x64-android
./vcpkg export --triplet x64-android boost-endian --prefab --prefab-maven --prefab-debug
add implementation 'com.vcpkg.ndk.support:boost-endian:1.75.0' in app/build.gradle
or
Expected behavior
Build success.
Logs
Environment:
Prefab version: 1.1.2
Additional context
In generated * Config.cmake needs target guard.
eg
The text was updated successfully, but these errors were encountered: