-
Notifications
You must be signed in to change notification settings - Fork 24
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
Set CMake flags in post_import phase #99
Conversation
I can confirm this, only works if set in post import |
@chhtz: are you running autoproj v1 or v2 ? Could you try defining it inside a setup_package block instead ?, e.g.
Note also that the defines should stay where they are unless there also is a problem with them in that block. |
I'm on autoproj v1.13.5.
Removing the |
Sorry, on v1 it should be |
With that it switches everything to Debug again:
|
N.B.: I'm not sure about the |
The issue is related to the order between loading of manifest.xml (the tags) and the call of setup_package. The defines are not dependent on files in the package, so are not subject to the same constraints. I just read the whole file, and it seems that it is the only one that has this problem. Anyways, last one: could you try just doing
at the original place, instead of moving it to a different place in the file ? It would help readability. Thanks a lot for your help. |
a2eaddf
to
4bc5fd2
Compare
Seems to work as well. I overwrote the commit and only changed handling of the build type now. |
Mmm ... miscommunication. Could you try leaving the tags stuff in the
? |
4bc5fd2
to
5184d65
Compare
Sorry for the delay and the misunderstanding. I updated the PR (meaning this variant works as well). |
Add visp package set
It seems that
pkg.tags
is not set at the momentRock.update_cmake_build_type_from_tags(pkg)
is called.I reverted this part to a cleaned up version before #92