-
Notifications
You must be signed in to change notification settings - Fork 122
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
CMake refactor and fix examples. #190
Conversation
@vissarion, @TolisChal It would be great if codecov's app can be integrated with Github - link. This will allow codecov comments on every PR regarding coverage changes. |
Sure, is this process needed? Why not simply enabling coverage comments as described in https://docs.codecov.com/docs/pull-request-comments ? |
Yup, the setup process is needed. The coverage comments are enabled by default in the config, but for the bot to actually post the comments it requires the setup process. |
Thanks for this PR! I am ok with merging in general. But since you did this would it make sense to fix example issues and optionally build them in CI (only in actions is ok). For example, we are still getting errors while compiling them with the new cmake
in EDIT: in particular you are getting the above error if you run
OK thanks, could you open an issue to think/discuss it and put it on schedule. |
Please see the new instructions for building examples (present in the README file for each example).
i.e, if you don't pass any example name in the |
I see, thanks for the explanations! However, I find the use of Another issue I see is the creation of a new directory |
Although
I am not facing this on my system and it should not happen, because the whole procedure is exactly the same as earlier other than the exclusion of non required example files. |
OK, this makes sense, but then there should be a way to generate all examples in once and the intuitive way of doing this, I think, is
I see, I was running I think it is cleaner to have one self-contained folder per example, with one CMakeList.txt and the .cpp inside and optionally other useful files. |
Hi @vissarion, I agree with your comment above that there is enough space for user to mess up somehow, also each example should be self contained. So, I am thinking of having a separate and self contained CMakeLists.txt (will depend on Regarding the use case that you mentioned of building all examples together, I think this will be required more for testing purposes (like verifying if all examples are building), which can be done in the future by using a separate bash/python script in the root examples folder. |
I totally agree here, that would be much clearer.
Yes, that would not be a problem. |
made the changes 👍🏽 as discussed above. |
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.
Thanks I am OK with merging. As a side note, a few examples are not compiling but this is an issue probably not related to this PR. We could open an issue and fix it later. It would also be useful to compile (not run) examples on CI.
@papachristoumarios @TolisChal what do you think of this PR? |
external/_deps
, this prevents multiple downloads of these libraries.external/cmake-files
directory - closes Put all .cmake files in one directory #151.Removed parts of CMakeLists.txt fromexamples/logconcave
andexamples/mmcs_method
which were already present at the root ofexamples
.hpolytopeVolume
andvpolytopeVolume
examples.