-
Notifications
You must be signed in to change notification settings - Fork 6.1k
CMake: Use toolchain files #2836
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
Conversation
Wait with this. I see a lot of failures. |
@chfast are you still working on this? |
Not actively. I have problem with Emscripten - I'm not able to mix C++11 toolchain with Emscripten toolchain. Everytime I touch something related to Emscripten the Travis build fails without enough information in logs... I will go back to this some day, but probably not this week. |
@chfast was this problem resolved? |
No. Emscripten toolchain is not fully supported by Hunter and you cannot build Boost this way. |
@chfast what should we do with this PR in that case? |
This should help by using the sane default from Emscripten via the toolchain file. @chfast can this be finished somehow? |
Yes, the idea it's simple: you have 2 toolchain files: one for regular C++11 builds, one for Emscripten builds. But this not work in practice, because Hunter does not support building boost with Emscripten this way. It requires some work there, probably quite time consuming. |
@chfast are you saying this PR should be abandoned or not? If it should be abandoned, does it still make sense creating an issue and linking here so that someone in the future might pick it up? |
@ekpyron here's another CMake PR to think about. |
@ekpyron are you still working on this? |
@axic Not right now, but looking into this and generally improving the build system is on my list. |
2cc9816
to
848c723
Compare
Rebased. |
848c723
to
b1d5fad
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2836 +/- ##
===========================================
- Coverage 88.33% 88.03% -0.31%
===========================================
Files 339 312 -27
Lines 32789 31371 -1418
Branches 3912 3752 -160
===========================================
- Hits 28965 27616 -1349
- Misses 2493 2500 +7
+ Partials 1331 1255 -76
|
Moving from "needs review" to "in progress" as the title says "WIP". |
The title wrongfully said it after. It needs to be reviewed. |
b1d5fad
to
61945a2
Compare
Rebased this and updated to C++14, not sure if it works anymore. |
61945a2
to
b57a36d
Compare
What is this about? What is the benefit? |
I think the main benefit is to properly (aka cmake style) set the compiler version. @chfast can answer better probably. |
Seems to be fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, but we should also change the
This is a way to extend some CMake settings to dependencies. Hunter relay on this. E.g. you can have a toolchain file that configures the build for Emscripten and "magically" whole project will cross-compile with Emscripten. There are my example toolchains: https://github.com/ethereum/cable/tree/master/toolchains Here are more: https://github.com/ruslo/polly. |
This was made obsolete by using toolchain files (#2836)
No description provided.