-
Notifications
You must be signed in to change notification settings - Fork 152
Add CMakeLists.txt #142
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
Add CMakeLists.txt #142
Conversation
This Pull request Passed all of clang-tidy tests. 👍 |
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.
I am fine with your addition. As already mentioned, I am not sure about the target_compile_features
. See my comments.
Boost::typeof | ||
) | ||
|
||
target_compile_features(boost_numeric_ublas INTERFACE cxx_std_11) |
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.
it should be cxx_std_20
because of the tensor extension.
if only matrix and vector types are used cxx_std_11
is sufficient.
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.
I don't have a deep knowledge of CMAKE
. Therefore, correct me if I'm wrong. Why don't we put another cmake
file inside the Tensor
with the compiler feature set to c++20
? Then we can include the directory.
This approach might fix the issue.
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.
I have to admit that I don't have that knowledge either. But as CMAKE specification should be made modular your hint might solve this issue.
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.
Could we combine PR #94 with this one?
@coder3101 did a very good job.
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.
I don't think that should be an issue, but it's better if @pdimov answers it.
The CMakeLists.txt is automatically generated by I would recommend leaving it as-is, because (a) C++20 is too high a requirement to impose today and (b) using I have to wonder, what C++20 features are you using? PR #94 is incompatible with the Boost CMake infrastructure and targets the use case where uBLAS is the root project. In such cases what we do is combine the two using an If you don't insist on having your own CML file, it's more convenient to use the |
As long as the tensor can still be compiled, I am fine with this PR.
We were already using C++17:
We were already using C++20:
I guess that this would be a good solution for us too.
That's fine with me as long as we can do something similar as done for GIL. Maybe you could help us here too. |
Unrelated to this PR, but are you aware that Boost releases are done from the How are people supposed to use the new features? Checkout the develop branch directly? |
Yes this a different topic and I would like to discuss this in the GitHub discussion section. Short answer: Code that uses C++17 features has been merged in 2018. Code using C++20 features is still not ready to be merged. |
It's relevant here because I want to figure out what CMakeLists.txt file we want on the master branch. On develop, if I understand correctly, you want a combination of this and #94, possibly with cxx_std_20 in target_compile_features. |
Got it. The master branch needs the cxx_std_17 if we want to include tests and examples. The develop branch requires the cxx_20_std. |
Will this be merged anytime soon? |
Please merge this PR. It is required for |
At the moment What needs to be done to get this merged? |
Would really appreciate if reviewer(s) can take a look at this PR! Checking out this patch locally unblocks me from using CMake with Boost. It would saved much trouble if merged. Ty! |
@bassoy any update on this PR? I am also running into this issue when trying to build Boost from source via CMake. |
I've just received another complaint that Since I see no activity here, if I receive no complaints, I will go ahead and add the CMakeLists.txt file to both master and develop, so that CMake users of Accumulators (and uBLAS itself, for that matter) can be unblocked. |
haha, about time! Thanks Peter. |
I think the CMakeLists looks good and I'd be happy to see it merged as well. |
+1 |
@bassoy should I merge this, or does anyone else want to do? If anyone has any objection against me merging, say no. |
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.
It looks.
uBLAS is one of the two remaining Boost libraries still missing CMake support. This adds it.